// Lean compiler output
// Module: Lean.Language.Lean
// Imports: public import Lean.Language.Util public import Lean.Language.Lean.Types public import Lean.Elab.Import
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_IO_withStderr___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Language_Lean_process(lean_object*, lean_object*, lean_object*);
lean_object* lean_profileit(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__26;
LEAN_EXPORT lean_object* l_Lean_logError___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__7;
LEAN_EXPORT uint8_t l_Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2___lam__0(uint8_t, uint8_t, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___lam__1(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Core_getMaxHeartbeats(lean_object*);
uint8_t l_Lean_Elab_isAbortExceptionId(lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__7;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__5(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__27;
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__11(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_processHeaderCore(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, uint32_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__1;
extern lean_object* l_Lean_Elab_instInhabitedInfoTree_default;
extern lean_object* l_Lean_Language_instInhabitedDynamicSnapshot;
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0___closed__0;
lean_object* l_Lean_Language_SnapshotTask_get___redArg(lean_object*);
lean_object* l_String_Slice_toNat_x3f(lean_object*);
extern lean_object* l_Lean_Language_Lean_instToSnapshotTreeHeaderProcessedSnapshot;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__4;
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__1(lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__0(lean_object*);
lean_object* l_Lean_Elab_Command_getScope___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Option_get___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__0(lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__1;
lean_object* l_Lean_Language_Snapshot_Diagnostics_ofMessageLog(lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__10;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__9;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__16;
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg___closed__2;
double lean_float_div(double, double);
static lean_object* l_panic___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__11___closed__0;
lean_object* lean_io_promise_new();
uint8_t l_Lean_Exception_isInterrupt(lean_object*);
uint8_t l_IO_CancelToken_isSet(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Option_register___at___00Lean_Language_Lean_initFn_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4__spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_get_set_stdout(lean_object*);
lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__9;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__3;
lean_object* l_Lean_Elab_Command_elabCommandTopLevel(lean_object*, lean_object*, lean_object*);
lean_object* lean_io_as_task(lean_object*, lean_object*);
lean_object* l_Lean_Language_instToSnapshotTreeSnapshotTree___lam__0___boxed(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1_spec__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, size_t, size_t, lean_object*);
lean_object* l_Lean_Name_toString(lean_object*, uint8_t);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__2___closed__0;
static lean_object* l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__4;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__29;
lean_object* lean_array_push(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_log___at___00Lean_logError___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__5_spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Language_DynamicSnapshot_ofTyped___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__14___lam__0___closed__0;
LEAN_EXPORT lean_object* l_Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__2;
lean_object* l_Lean_Language_instInhabitedSnapshotTask_default___redArg(lean_object*);
uint8_t lean_usize_dec_eq(size_t, size_t);
lean_object* l_Lean_KVMap_find(lean_object*, lean_object*);
lean_object* l_Lean_Elab_Command_mkState(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Language_Lean_LeanProcessingM_run(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_getArgs(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1_spec__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
lean_object* l___private_Lean_Log_0__Lean_MessageData_appendDescriptionWidgetIfNamed(lean_object*);
static lean_object* l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0___closed__3;
lean_object* l_Lean_replaceRef(lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__5;
lean_object* l_Lean_Language_SnapshotTask_bindIO___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Language_Lean_instMonadLiftLeanProcessingMLeanProcessingTIO___lam__0(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t);
lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__1;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__19;
uint8_t l_Lean_instBEqMessageSeverity_beq(uint8_t, uint8_t);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__11___boxed(lean_object**);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__0;
LEAN_EXPORT uint8_t l_Lean_Option_get___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__1(lean_object*, lean_object*);
lean_object* l_Lean_Elab_InfoTree_format(lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__9;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__6;
LEAN_EXPORT lean_object* l_Lean_Option_set___at___00Lean_Option_setIfNotSet___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__2_spec__2___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__6;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__3;
LEAN_EXPORT lean_object* l_IO_withStdin___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__10___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__3;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__2;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__13;
uint8_t l_Lean_MessageData_hasSyntheticSorry(lean_object*);
LEAN_EXPORT lean_object* l_IO_withStdin___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__10___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Option_get_x3f___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__1___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Language_Lean_reparseOptions(lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Language_Lean_processCommands___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
lean_object* l_Lean_Name_mkStr5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_stringToMessageData(lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___closed__1;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__20;
lean_object* l_IO_Promise_result_x21___redArg(lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_maxRecDepth;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__17;
uint8_t lean_string_dec_eq(lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__4;
extern lean_object* l_Lean_Parser_instInhabitedModuleParserState_default;
LEAN_EXPORT lean_object* l_IO_withStdout___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__9___redArg(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg___closed__0;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__12;
LEAN_EXPORT lean_object* l_Lean_Language_Lean_LeanProcessingM_run___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Array_toPArray_x27___redArg(lean_object*);
lean_object* lean_string_utf8_byte_size(lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__0;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__11;
LEAN_EXPORT lean_object* l_IO_withStderr___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__12(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Language_Lean_initFn___closed__5_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_;
lean_object* l_Lean_Kernel_enableDiag(lean_object*, uint8_t);
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__3;
LEAN_EXPORT lean_object* l_IO_withStderr___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__12___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Kernel_isDiagnosticsEnabled(lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__6(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f(lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__30;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__1;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__2;
lean_object* l_Lean_Language_SnapshotTask_finished___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_InternalExceptionId_getName(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Language_Lean_reparseOptions___boxed(lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__0;
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5(lean_object*, lean_object*, lean_object*, size_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__32;
lean_object* lean_io_promise_resolve(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__5_spec__5(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, size_t, size_t, lean_object*);
size_t lean_usize_of_nat(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Option_get___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__0___boxed(lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__8;
uint8_t l_Lean_Parser_isTerminalCommand(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Option_get_x3f___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__1(lean_object*, lean_object*);
lean_object* l_IO_CancelToken_new();
lean_object* lean_task_pure(lean_object*);
static lean_object* l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0___closed__2;
static lean_object* l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0___closed__1;
extern lean_object* l_Lean_Elab_Command_instInhabitedScope_default;
LEAN_EXPORT lean_object* l_panic___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__11(lean_object*);
lean_object* lean_st_ref_take(lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__3;
LEAN_EXPORT lean_object* l_Lean_Language_Lean_processCommands(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9(lean_object*, lean_object*, uint8_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Language_Lean_instMonadLiftLeanProcessingMLeanProcessingTIO___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__34;
lean_object* l_Lean_Language_SnapshotTree_waitAll(lean_object*);
LEAN_EXPORT lean_object* l_Lean_logError___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__5(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__8___redArg(lean_object*, size_t, size_t, lean_object*);
static lean_object* l_Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2___closed__1;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__23;
extern lean_object* l_ByteArray_empty;
static lean_object* l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__2;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__4;
static lean_object* l_Lean_Language_Lean_setOption___closed__4;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__11;
LEAN_EXPORT lean_object* l_IO_withStdout___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__9___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_IO_withStdout___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__4;
LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__6;
static lean_object* l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__4;
lean_object* l_Lean_Elab_HeaderSyntax_startPos(lean_object*);
LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Language_Lean_setOption(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__3;
LEAN_EXPORT lean_object* l_Lean_Language_Lean_instMonadLiftLeanProcessingMLeanProcessingTIO;
static lean_object* l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__0;
static lean_object* l_Lean_Language_Lean_setOption___closed__1;
extern lean_object* l_Lean_Language_instInhabitedSnapshotTree_default;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f___closed__2;
lean_object* l_Lean_MessageData_ofFormat(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Language_Lean_instMonadLiftProcessingTLeanProcessingT(lean_object*);
lean_object* l_Lean_Language_Lean_HeaderParsedSnapshot_processedResult(lean_object*);
lean_object* l_String_firstDiffPos(lean_object*, lean_object*);
lean_object* l_Lean_Name_replacePrefix(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg(lean_object*);
double lean_float_of_nat(lean_object*);
static lean_object* l_Lean_Language_Lean_setOption___closed__3;
lean_object* lean_st_ref_get(lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2___closed__0;
lean_object* lean_st_mk_ref(lean_object*);
lean_object* l_Lean_getOptionDecls();
lean_object* lean_array_to_list(lean_object*);
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg(lean_object*, lean_object*, lean_object*);
static lean_object* l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__0;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__8(lean_object*, size_t, size_t, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_IO_withStderr___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__12___redArg(lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_MessageData_hasTag(lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__28;
static lean_object* l_Lean_Language_Lean_initFn___closed__0_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__7;
lean_object* l_Lean_Name_num___override(lean_object*, lean_object*);
lean_object* l_Lean_Name_append(lean_object*, lean_object*);
uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_InfoState_substituteLazy(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2___lam__0___closed__0;
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__2;
extern lean_object* l_Lean_MessageData_nil;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__5;
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_getRoot(lean_object*);
lean_object* lean_io_mono_nanos_now();
lean_object* l_Lean_Language_SnapshotTask_ofIO___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__33;
static lean_object* l_Lean_Language_Lean_initFn___closed__3_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_;
lean_object* lean_thunk_get_own(lean_object*);
lean_object* l_Lean_Language_diagnosticsOfHeaderError(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_IO_withStdout___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__9(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1_spec__2_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___00Lean_NameMap_find_x3f_spec__0___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__14;
uint8_t lean_name_eq(lean_object*, lean_object*);
lean_object* l_Lean_Name_str___override(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_IO_FS_Stream_ofBuffer(lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_waitForFinalCmdState_x3f_goCmd(lean_object*);
extern lean_object* l_Lean_warningAsError;
LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg(lean_object*, uint8_t, lean_object*);
extern lean_object* l_Lean_MessageLog_empty;
LEAN_EXPORT lean_object* l_Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__5;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__7;
LEAN_EXPORT lean_object* l_Lean_Option_setIfNotSet___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__2(lean_object*, lean_object*, uint8_t);
LEAN_EXPORT lean_object* l_Lean_Language_Lean_LeanProcessingM_run___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
lean_object* l_Lean_Language_SnapshotTask_cancelRec___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__8___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_Language_instInhabitedSnapshot_default;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__31;
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___boxed(lean_object**);
lean_object* l_Lean_Language_SnapshotTask_ReportingRange_ofOptionInheriting(lean_object*);
LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__9;
extern lean_object* l_Lean_diagnostics;
static lean_object* l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__1;
extern lean_object* l_Lean_Language_instImpl_00___x40_Lean_Language_Basic_3093936625____hygCtx___hyg_29_;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__10;
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2(lean_object*, lean_object*, lean_object*);
lean_object* lean_get_set_stderr(lean_object*);
lean_object* l_Lean_Language_SnapshotTask_get_x3f___redArg(lean_object*);
lean_object* l_Lean_Language_SnapshotTask_defaultReportingRange(lean_object*);
extern lean_object* l_Lean_Language_Snapshot_Diagnostics_empty;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__6;
LEAN_EXPORT lean_object* l_Lean_Language_Lean_experimental_module;
LEAN_EXPORT lean_object* l_Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2___lam__0___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg___closed__1;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__3;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f___closed__0;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__8;
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___boxed(lean_object**);
lean_object* lean_mk_thunk(lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__2;
LEAN_EXPORT lean_object* l_Lean_Language_Lean_LeanProcessingM_run___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_register_option(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_inheritedTraceOptions;
static lean_object* l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__1;
LEAN_EXPORT lean_object* l_Lean_Option_get___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__1___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__2___boxed(lean_object*);
lean_object* l_Lean_Elab_Command_getRef___redArg(lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__0;
LEAN_EXPORT lean_object* l_Lean_log___at___00Lean_logError___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__5_spec__5(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*);
lean_object* l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(lean_object*, uint8_t);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__0;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__4;
static lean_object* l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__3;
static lean_object* l_Lean_Language_Lean_initFn___closed__4_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_;
lean_object* l_List_toPArray_x27___redArg(lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__24;
lean_object* l_List_head_x21___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___lam__0(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__18;
LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__4;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__4;
static lean_object* l_Lean_Language_Lean_setOption___closed__2;
lean_object* l_Lean_PersistentArray_get_x21___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Language_Lean_instMonadLiftProcessingTLeanProcessingT___lam__0(lean_object*, lean_object*, lean_object*);
lean_object* l_outOfBounds___redArg(lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__8;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__2;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__12;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__5_spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__0;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__17;
extern lean_object* l_Lean_NameSet_empty;
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__6;
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__2;
LEAN_EXPORT lean_object* l_Lean_Language_Lean_initFn_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_();
static lean_object* l_Lean_Language_Lean_initFn___closed__1_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_;
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__4(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_beq___boxed(lean_object*, lean_object*);
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__25;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__2;
LEAN_EXPORT uint8_t l_Lean_Language_Lean_isBeforeEditPos(lean_object*, lean_object*);
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Option_register___at___00Lean_Language_Lean_initFn_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4__spec__0(lean_object*, lean_object*, lean_object*);
uint8_t lean_string_validate_utf8(lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__3(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Language_Lean_instToSnapshotTreeCommandParsedSnapshot_go(lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__15;
LEAN_EXPORT lean_object* l_Lean_Language_Lean_waitForFinalCmdState_x3f(lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__21;
LEAN_EXPORT lean_object* l_Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Syntax_isNone(lean_object*);
lean_object* lean_panic_fn(lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f___closed__1;
static lean_object* l_Lean_Language_Lean_setOption___closed__5;
LEAN_EXPORT lean_object* l_Lean_Language_DynamicSnapshot_ofTyped___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__14___lam__0(lean_object*, lean_object*);
lean_object* l_List_reverse___redArg(lean_object*);
lean_object* lean_task_map(lean_object*, lean_object*, lean_object*, uint8_t);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__3;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__1;
lean_object* l_Array_append___redArg(lean_object*, lean_object*);
uint8_t l_List_elem___redArg(lean_object*, lean_object*, lean_object*);
lean_object* lean_io_bind_task(lean_object*, lean_object*, lean_object*, uint8_t);
lean_object* lean_get_set_stdin(lean_object*);
lean_object* l_Lean_KVMap_insert(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Language_Lean_isBeforeEditPos___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2___closed__0;
lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_IO_withStdin___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__22;
LEAN_EXPORT lean_object* l_IO_withStdin___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__10(lean_object*, lean_object*, lean_object*, lean_object*);
static double l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__8;
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__1;
lean_object* l_BaseIO_chainTask___redArg(lean_object*, lean_object*, lean_object*, uint8_t);
extern lean_object* l_Lean_firstFrontendMacroScope;
extern lean_object* l_Lean_Core_stderrAsMessages;
static lean_object* l_Lean_Language_Lean_setOption___closed__6;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__15;
size_t lean_usize_add(size_t, size_t);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__4(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Syntax_eqWithInfo(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__2(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Language_Lean_setOption___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1_spec__2_spec__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, size_t, size_t, lean_object*);
static lean_object* l_Lean_Language_Lean_initFn___closed__2_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_;
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__0;
lean_object* lean_array_uget(lean_object*, size_t);
size_t lean_array_size(lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__6;
lean_object* l_Lean_Language_SnapshotTree_trace(lean_object*, lean_object*, lean_object*);
lean_object* lean_io_error_to_string(lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__5;
LEAN_EXPORT lean_object* l_Lean_Language_Lean_process___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f___closed__3;
lean_object* lean_st_ref_set(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Option_set___at___00Lean_Option_setIfNotSet___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__2_spec__2(lean_object*, lean_object*, uint8_t);
lean_object* l_Lean_Name_mkStr1(lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__14;
lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_unsetTrailing(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__11___closed__0;
lean_object* lean_string_from_utf8_unchecked(lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_string_append(lean_object*, lean_object*);
extern lean_object* l_Lean_trace_profiler_output;
LEAN_EXPORT lean_object* l_Lean_Language_DynamicSnapshot_ofTyped___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__14(lean_object*, lean_object*);
static lean_object* l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__3;
LEAN_EXPORT lean_object* l_Lean_Option_setIfNotSet___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__2___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__5;
lean_object* lean_array_get_size(lean_object*);
extern lean_object* l_Lean_instInhabitedTraceState_default;
lean_object* l_Lean_Parser_parseHeader(lean_object*);
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Language_Lean_initFn_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4____boxed(lean_object*);
uint8_t lean_usize_dec_lt(size_t, size_t);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__5;
LEAN_EXPORT lean_object* l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__0(lean_object*, lean_object*);
static lean_object* l_Lean_Language_Lean_setOption___closed__0;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__13;
lean_object* lean_nat_add(lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__4;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__0;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__2;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___closed__0;
uint8_t l_Lean_KVMap_contains(lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__16;
lean_object* l_Lean_Parser_parseCommand(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__1;
static lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__8___redArg___closed__0;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__4;
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg(lean_object*, lean_object*);
extern lean_object* l_Lean_internal_cmdlineSnapshots;
lean_object* l_Lean_DeclNameGenerator_ofPrefix(lean_object*);
lean_object* l_Lean_MessageData_ofName(lean_object*);
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__7;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__2;
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__3;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__1;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__5;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__0;
lean_object* l_Lean_MessageLog_add(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__5;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__1;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__6;
uint8_t l_Lean_MessageLog_hasErrors(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Language_Lean_instMonadLiftLeanProcessingMLeanProcessingTIO___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_apply_2(x_2, x_3, lean_box(0));
x_6 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_6, 0, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Language_Lean_instMonadLiftLeanProcessingMLeanProcessingTIO___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Language_Lean_instMonadLiftLeanProcessingMLeanProcessingTIO___lam__0(x_1, x_2, x_3);
return x_5;
}
}
static lean_object* _init_l_Lean_Language_Lean_instMonadLiftLeanProcessingMLeanProcessingTIO() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Language_Lean_instMonadLiftLeanProcessingMLeanProcessingTIO___lam__0___boxed), 4, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Language_Lean_instMonadLiftProcessingTLeanProcessingT___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_4);
lean_dec_ref(x_3);
x_5 = lean_apply_1(x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Language_Lean_instMonadLiftProcessingTLeanProcessingT(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Language_Lean_instMonadLiftProcessingTLeanProcessingT___lam__0), 3, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Language_Lean_LeanProcessingM_run___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; 
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_9; 
x_9 = lean_box(0);
x_5 = x_9;
goto block_8;
}
else
{
uint8_t x_10; 
x_10 = !lean_is_exclusive(x_2);
if (x_10 == 0)
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_11 = lean_ctor_get(x_2, 0);
x_12 = lean_ctor_get(x_11, 0);
lean_inc_ref(x_12);
lean_dec(x_11);
x_13 = lean_ctor_get(x_3, 0);
x_14 = l_String_firstDiffPos(x_12, x_13);
lean_dec_ref(x_12);
lean_ctor_set(x_2, 0, x_14);
x_5 = x_2;
goto block_8;
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_15 = lean_ctor_get(x_2, 0);
lean_inc(x_15);
lean_dec(x_2);
x_16 = lean_ctor_get(x_15, 0);
lean_inc_ref(x_16);
lean_dec(x_15);
x_17 = lean_ctor_get(x_3, 0);
x_18 = l_String_firstDiffPos(x_16, x_17);
lean_dec_ref(x_16);
x_19 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_19, 0, x_18);
x_5 = x_19;
goto block_8;
}
}
block_8:
{
lean_object* x_6; lean_object* x_7; 
x_6 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_6, 0, x_3);
lean_ctor_set(x_6, 1, x_5);
x_7 = lean_apply_2(x_1, x_6, lean_box(0));
return x_7;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Language_Lean_LeanProcessingM_run(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Language_Lean_LeanProcessingM_run___redArg(x_2, x_3, x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Language_Lean_LeanProcessingM_run___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Language_Lean_LeanProcessingM_run(x_1, x_2, x_3, x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Language_Lean_LeanProcessingM_run___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Language_Lean_LeanProcessingM_run___redArg(x_1, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT uint8_t l_Lean_Language_Lean_isBeforeEditPos(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_4; 
x_4 = lean_ctor_get(x_2, 1);
if (lean_obj_tag(x_4) == 0)
{
uint8_t x_5; 
x_5 = 0;
return x_5;
}
else
{
lean_object* x_6; uint8_t x_7; 
x_6 = lean_ctor_get(x_4, 0);
x_7 = lean_nat_dec_lt(x_1, x_6);
return x_7;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Language_Lean_isBeforeEditPos___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; 
x_4 = l_Lean_Language_Lean_isBeforeEditPos(x_1, x_2);
lean_dec_ref(x_2);
lean_dec(x_1);
x_5 = lean_box(x_4);
return x_5;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("withHeaderExceptions", 20, 20);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Language", 8, 8);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("_private", 8, 8);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__0;
x_2 = lean_box(0);
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__2;
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__1;
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__4;
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__3;
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__2;
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__5;
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__6;
x_3 = l_Lean_Name_num___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__2;
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__7;
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__4;
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__8;
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__2;
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__9;
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__11;
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__10;
x_3 = l_Lean_Name_str___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__13() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__12;
x_3 = l_Lean_Name_toString(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(32u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__14;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__16() {
_start:
{
size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = 5;
x_2 = lean_unsigned_to_nat(0u);
x_3 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__14;
x_4 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__15;
x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_3);
lean_ctor_set(x_5, 2, x_2);
lean_ctor_set(x_5, 3, x_2);
lean_ctor_set_usize(x_5, 4, x_1);
return x_5;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__17() {
_start:
{
lean_object* x_1; uint64_t x_2; lean_object* x_3; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__16;
x_2 = 0;
x_3 = lean_alloc_ctor(0, 1, 8);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set_uint64(x_3, sizeof(void*)*1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; 
lean_inc_ref(x_3);
x_5 = lean_apply_2(x_2, x_3, lean_box(0));
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; 
lean_dec_ref(x_3);
lean_dec(x_1);
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
lean_dec_ref(x_5);
return x_6;
}
else
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; 
x_7 = lean_ctor_get(x_5, 0);
lean_inc(x_7);
lean_dec_ref(x_5);
x_8 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_8);
lean_dec_ref(x_3);
x_9 = lean_io_error_to_string(x_7);
x_10 = l_Lean_Language_diagnosticsOfHeaderError(x_9, x_8);
x_11 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__13;
x_12 = lean_box(0);
x_13 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__17;
x_14 = 0;
x_15 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_15, 0, x_11);
lean_ctor_set(x_15, 1, x_10);
lean_ctor_set(x_15, 2, x_12);
lean_ctor_set(x_15, 3, x_13);
lean_ctor_set_uint8(x_15, sizeof(void*)*4, x_14);
x_16 = lean_apply_1(x_1, x_15);
return x_16;
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; 
x_6 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg(x_2, x_3, x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions(x_1, x_2, x_3, x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg(x_1, x_2, x_3);
return x_5;
}
}
static lean_object* _init_l_Lean_Language_Lean_setOption___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("true", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Language_Lean_setOption___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("false", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Language_Lean_setOption___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid -D parameter, invalid configuration option '", 52, 52);
return x_1;
}
}
static lean_object* _init_l_Lean_Language_Lean_setOption___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("' value, it must be true/false", 30, 30);
return x_1;
}
}
static lean_object* _init_l_Lean_Language_Lean_setOption___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("' value, it must be a natural number", 36, 36);
return x_1;
}
}
static lean_object* _init_l_Lean_Language_Lean_setOption___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid -D parameter, configuration option '", 44, 44);
return x_1;
}
}
static lean_object* _init_l_Lean_Language_Lean_setOption___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("' cannot be set in the command line, use set_option command", 59, 59);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Language_Lean_setOption(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; 
x_6 = lean_ctor_get(x_2, 2);
lean_inc_ref(x_6);
lean_dec_ref(x_2);
switch (lean_obj_tag(x_6)) {
case 1:
{
uint8_t x_7; 
x_7 = !lean_is_exclusive(x_6);
if (x_7 == 0)
{
lean_object* x_8; uint8_t x_9; 
x_8 = l_Lean_Language_Lean_setOption___closed__0;
x_9 = lean_string_dec_eq(x_4, x_8);
if (x_9 == 0)
{
lean_object* x_10; uint8_t x_11; 
x_10 = l_Lean_Language_Lean_setOption___closed__1;
x_11 = lean_string_dec_eq(x_4, x_10);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
lean_free_object(x_6);
lean_dec(x_3);
lean_dec(x_1);
x_12 = l_Lean_Language_Lean_setOption___closed__2;
x_13 = lean_string_append(x_12, x_4);
lean_dec_ref(x_4);
x_14 = l_Lean_Language_Lean_setOption___closed__3;
x_15 = lean_string_append(x_13, x_14);
x_16 = lean_alloc_ctor(18, 1, 0);
lean_ctor_set(x_16, 0, x_15);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_16);
return x_17;
}
else
{
lean_object* x_18; lean_object* x_19; 
lean_dec_ref(x_4);
lean_ctor_set_uint8(x_6, 0, x_9);
x_18 = l_Lean_KVMap_insert(x_1, x_3, x_6);
x_19 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_19, 0, x_18);
return x_19;
}
}
else
{
lean_object* x_20; lean_object* x_21; 
lean_dec_ref(x_4);
lean_ctor_set_uint8(x_6, 0, x_9);
x_20 = l_Lean_KVMap_insert(x_1, x_3, x_6);
x_21 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_21, 0, x_20);
return x_21;
}
}
else
{
lean_object* x_22; uint8_t x_23; 
lean_dec(x_6);
x_22 = l_Lean_Language_Lean_setOption___closed__0;
x_23 = lean_string_dec_eq(x_4, x_22);
if (x_23 == 0)
{
lean_object* x_24; uint8_t x_25; 
x_24 = l_Lean_Language_Lean_setOption___closed__1;
x_25 = lean_string_dec_eq(x_4, x_24);
if (x_25 == 0)
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
lean_dec(x_3);
lean_dec(x_1);
x_26 = l_Lean_Language_Lean_setOption___closed__2;
x_27 = lean_string_append(x_26, x_4);
lean_dec_ref(x_4);
x_28 = l_Lean_Language_Lean_setOption___closed__3;
x_29 = lean_string_append(x_27, x_28);
x_30 = lean_alloc_ctor(18, 1, 0);
lean_ctor_set(x_30, 0, x_29);
x_31 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_31, 0, x_30);
return x_31;
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; 
lean_dec_ref(x_4);
x_32 = lean_alloc_ctor(1, 0, 1);
lean_ctor_set_uint8(x_32, 0, x_23);
x_33 = l_Lean_KVMap_insert(x_1, x_3, x_32);
x_34 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_34, 0, x_33);
return x_34;
}
}
else
{
lean_object* x_35; lean_object* x_36; lean_object* x_37; 
lean_dec_ref(x_4);
x_35 = lean_alloc_ctor(1, 0, 1);
lean_ctor_set_uint8(x_35, 0, x_23);
x_36 = l_Lean_KVMap_insert(x_1, x_3, x_35);
x_37 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_37, 0, x_36);
return x_37;
}
}
}
case 3:
{
uint8_t x_38; 
x_38 = !lean_is_exclusive(x_6);
if (x_38 == 0)
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; 
x_39 = lean_ctor_get(x_6, 0);
lean_dec(x_39);
x_40 = lean_unsigned_to_nat(0u);
x_41 = lean_string_utf8_byte_size(x_4);
lean_inc_ref(x_4);
x_42 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_42, 0, x_4);
lean_ctor_set(x_42, 1, x_40);
lean_ctor_set(x_42, 2, x_41);
x_43 = l_String_Slice_toNat_x3f(x_42);
lean_dec_ref(x_42);
if (lean_obj_tag(x_43) == 1)
{
uint8_t x_44; 
lean_dec_ref(x_4);
x_44 = !lean_is_exclusive(x_43);
if (x_44 == 0)
{
lean_object* x_45; lean_object* x_46; 
x_45 = lean_ctor_get(x_43, 0);
lean_ctor_set(x_6, 0, x_45);
x_46 = l_Lean_KVMap_insert(x_1, x_3, x_6);
lean_ctor_set_tag(x_43, 0);
lean_ctor_set(x_43, 0, x_46);
return x_43;
}
else
{
lean_object* x_47; lean_object* x_48; lean_object* x_49; 
x_47 = lean_ctor_get(x_43, 0);
lean_inc(x_47);
lean_dec(x_43);
lean_ctor_set(x_6, 0, x_47);
x_48 = l_Lean_KVMap_insert(x_1, x_3, x_6);
x_49 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_49, 0, x_48);
return x_49;
}
}
else
{
lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; 
lean_dec(x_43);
lean_free_object(x_6);
lean_dec(x_3);
lean_dec(x_1);
x_50 = l_Lean_Language_Lean_setOption___closed__2;
x_51 = lean_string_append(x_50, x_4);
lean_dec_ref(x_4);
x_52 = l_Lean_Language_Lean_setOption___closed__4;
x_53 = lean_string_append(x_51, x_52);
x_54 = lean_alloc_ctor(18, 1, 0);
lean_ctor_set(x_54, 0, x_53);
x_55 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_55, 0, x_54);
return x_55;
}
}
else
{
lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; 
lean_dec(x_6);
x_56 = lean_unsigned_to_nat(0u);
x_57 = lean_string_utf8_byte_size(x_4);
lean_inc_ref(x_4);
x_58 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_58, 0, x_4);
lean_ctor_set(x_58, 1, x_56);
lean_ctor_set(x_58, 2, x_57);
x_59 = l_String_Slice_toNat_x3f(x_58);
lean_dec_ref(x_58);
if (lean_obj_tag(x_59) == 1)
{
lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; 
lean_dec_ref(x_4);
x_60 = lean_ctor_get(x_59, 0);
lean_inc(x_60);
if (lean_is_exclusive(x_59)) {
 lean_ctor_release(x_59, 0);
 x_61 = x_59;
} else {
 lean_dec_ref(x_59);
 x_61 = lean_box(0);
}
x_62 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_62, 0, x_60);
x_63 = l_Lean_KVMap_insert(x_1, x_3, x_62);
if (lean_is_scalar(x_61)) {
 x_64 = lean_alloc_ctor(0, 1, 0);
} else {
 x_64 = x_61;
 lean_ctor_set_tag(x_64, 0);
}
lean_ctor_set(x_64, 0, x_63);
return x_64;
}
else
{
lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; 
lean_dec(x_59);
lean_dec(x_3);
lean_dec(x_1);
x_65 = l_Lean_Language_Lean_setOption___closed__2;
x_66 = lean_string_append(x_65, x_4);
lean_dec_ref(x_4);
x_67 = l_Lean_Language_Lean_setOption___closed__4;
x_68 = lean_string_append(x_66, x_67);
x_69 = lean_alloc_ctor(18, 1, 0);
lean_ctor_set(x_69, 0, x_68);
x_70 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_70, 0, x_69);
return x_70;
}
}
}
case 0:
{
uint8_t x_71; 
x_71 = !lean_is_exclusive(x_6);
if (x_71 == 0)
{
lean_object* x_72; lean_object* x_73; lean_object* x_74; 
x_72 = lean_ctor_get(x_6, 0);
lean_dec(x_72);
lean_ctor_set(x_6, 0, x_4);
x_73 = l_Lean_KVMap_insert(x_1, x_3, x_6);
x_74 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_74, 0, x_73);
return x_74;
}
else
{
lean_object* x_75; lean_object* x_76; lean_object* x_77; 
lean_dec(x_6);
x_75 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_75, 0, x_4);
x_76 = l_Lean_KVMap_insert(x_1, x_3, x_75);
x_77 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_77, 0, x_76);
return x_77;
}
}
default: 
{
lean_object* x_78; uint8_t x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; 
lean_dec_ref(x_6);
lean_dec_ref(x_4);
lean_dec(x_1);
x_78 = l_Lean_Language_Lean_setOption___closed__5;
x_79 = 1;
x_80 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_3, x_79);
x_81 = lean_string_append(x_78, x_80);
lean_dec_ref(x_80);
x_82 = l_Lean_Language_Lean_setOption___closed__6;
x_83 = lean_string_append(x_81, x_82);
x_84 = lean_alloc_ctor(18, 1, 0);
lean_ctor_set(x_84, 0, x_83);
x_85 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_85, 0, x_84);
return x_85;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Language_Lean_setOption___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Language_Lean_setOption(x_1, x_2, x_3, x_4);
return x_6;
}
}
static lean_object* _init_l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("weak", 4, 4);
return x_1;
}
}
static lean_object* _init_l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__0;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid -D parameter, unknown configuration option '", 52, 52);
return x_1;
}
}
static lean_object* _init_l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("'\n\nIf the option is defined in a library, use '-D", 49, 49);
return x_1;
}
}
static lean_object* _init_l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("' to set it conditionally", 25, 25);
return x_1;
}
}
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_5; 
x_5 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_5, 0, x_3);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_6 = lean_ctor_get(x_2, 0);
lean_inc(x_6);
x_7 = lean_ctor_get(x_2, 1);
lean_inc(x_7);
lean_dec_ref(x_2);
x_8 = lean_ctor_get(x_6, 0);
lean_inc(x_8);
x_9 = lean_ctor_get(x_6, 1);
lean_inc(x_9);
lean_dec(x_6);
x_10 = l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__1;
x_11 = lean_box(0);
lean_inc(x_8);
x_12 = l_Lean_Name_replacePrefix(x_8, x_10, x_11);
x_13 = l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___00Lean_NameMap_find_x3f_spec__0___redArg(x_1, x_12);
if (lean_obj_tag(x_13) == 1)
{
lean_dec(x_8);
if (lean_obj_tag(x_9) == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_14 = lean_ctor_get(x_13, 0);
lean_inc(x_14);
lean_dec_ref(x_13);
x_15 = lean_ctor_get(x_9, 0);
lean_inc_ref(x_15);
lean_dec_ref(x_9);
x_16 = l_Lean_Language_Lean_setOption(x_3, x_14, x_12, x_15);
if (lean_obj_tag(x_16) == 0)
{
lean_object* x_17; 
x_17 = lean_ctor_get(x_16, 0);
lean_inc(x_17);
lean_dec_ref(x_16);
x_2 = x_7;
x_3 = x_17;
goto _start;
}
else
{
lean_dec(x_7);
return x_16;
}
}
else
{
lean_object* x_19; 
lean_dec_ref(x_13);
x_19 = l_Lean_KVMap_insert(x_3, x_12, x_9);
x_2 = x_7;
x_3 = x_19;
goto _start;
}
}
else
{
lean_object* x_21; uint8_t x_22; 
lean_dec(x_13);
lean_dec(x_9);
x_21 = l_Lean_Name_getRoot(x_8);
lean_dec(x_8);
x_22 = lean_name_eq(x_21, x_10);
lean_dec(x_21);
if (x_22 == 0)
{
lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; 
lean_dec(x_7);
lean_dec(x_3);
x_23 = l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__2;
x_24 = 1;
lean_inc(x_12);
x_25 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_12, x_24);
x_26 = lean_string_append(x_23, x_25);
lean_dec_ref(x_25);
x_27 = l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__3;
x_28 = lean_string_append(x_26, x_27);
x_29 = l_Lean_Name_append(x_10, x_12);
x_30 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_29, x_24);
x_31 = lean_string_append(x_28, x_30);
lean_dec_ref(x_30);
x_32 = l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__4;
x_33 = lean_string_append(x_31, x_32);
x_34 = lean_alloc_ctor(18, 1, 0);
lean_ctor_set(x_34, 0, x_33);
x_35 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_35, 0, x_34);
return x_35;
}
else
{
lean_dec(x_12);
x_2 = x_7;
goto _start;
}
}
}
}
}
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_7; 
x_7 = l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg(x_1, x_3, x_4);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Language_Lean_reparseOptions(lean_object* x_1) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_getOptionDecls();
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_4 = lean_ctor_get(x_3, 0);
lean_inc(x_4);
lean_dec_ref(x_3);
x_5 = lean_box(0);
x_6 = l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg(x_4, x_1, x_5);
lean_dec(x_4);
return x_6;
}
else
{
uint8_t x_7; 
lean_dec(x_1);
x_7 = !lean_is_exclusive(x_3);
if (x_7 == 0)
{
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_9, 0, x_8);
return x_9;
}
}
}
}
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_2);
lean_dec(x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Language_Lean_reparseOptions___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Language_Lean_reparseOptions(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg(x_1, x_2, x_3);
lean_dec(x_1);
return x_5;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Parser", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Command", 7, 7);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("declModifiers", 13, 13);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f___closed__2;
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f___closed__1;
x_3 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f___closed__0;
x_4 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__2;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_6 = lean_unsigned_to_nat(0u);
x_7 = l_Lean_Syntax_getArg(x_1, x_6);
x_8 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f___closed__3;
x_9 = l_Lean_Syntax_isOfKind(x_7, x_8);
if (x_9 == 0)
{
x_2 = x_1;
goto block_5;
}
else
{
lean_object* x_10; lean_object* x_11; 
x_10 = lean_unsigned_to_nat(1u);
x_11 = l_Lean_Syntax_getArg(x_1, x_10);
lean_dec(x_1);
x_2 = x_11;
goto block_5;
}
block_5:
{
uint8_t x_3; lean_object* x_4; 
x_3 = 0;
x_4 = l_Lean_Syntax_getPos_x3f(x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
}
static lean_object* _init_l_Lean_Language_Lean_initFn___closed__0_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("experimental", 12, 12);
return x_1;
}
}
static lean_object* _init_l_Lean_Language_Lean_initFn___closed__1_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("module", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Language_Lean_initFn___closed__2_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Language_Lean_initFn___closed__1_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_;
x_2 = l_Lean_Language_Lean_initFn___closed__0_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Language_Lean_initFn___closed__3_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Allow use of module system (experimental)", 41, 41);
return x_1;
}
}
static lean_object* _init_l_Lean_Language_Lean_initFn___closed__4_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_() {
_start:
{
lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Language_Lean_initFn___closed__3_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_;
x_2 = 0;
x_3 = lean_box(x_2);
x_4 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Language_Lean_initFn___closed__5_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Language_Lean_initFn___closed__1_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_;
x_2 = l_Lean_Language_Lean_initFn___closed__0_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_;
x_3 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__4;
x_4 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__2;
x_5 = l_Lean_Name_mkStr5(x_4, x_3, x_4, x_2, x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_register___at___00Lean_Language_Lean_initFn_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4__spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_5; 
x_5 = !lean_is_exclusive(x_2);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; 
x_6 = lean_ctor_get(x_2, 0);
x_7 = lean_ctor_get(x_2, 1);
x_8 = lean_alloc_ctor(1, 0, 1);
x_9 = lean_unbox(x_6);
lean_ctor_set_uint8(x_8, 0, x_9);
lean_inc(x_1);
x_10 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_10, 0, x_1);
lean_ctor_set(x_10, 1, x_3);
lean_ctor_set(x_10, 2, x_8);
lean_ctor_set(x_10, 3, x_7);
lean_inc(x_1);
x_11 = lean_register_option(x_1, x_10);
if (lean_obj_tag(x_11) == 0)
{
uint8_t x_12; 
x_12 = !lean_is_exclusive(x_11);
if (x_12 == 0)
{
lean_object* x_13; 
x_13 = lean_ctor_get(x_11, 0);
lean_dec(x_13);
lean_ctor_set(x_2, 1, x_6);
lean_ctor_set(x_2, 0, x_1);
lean_ctor_set(x_11, 0, x_2);
return x_11;
}
else
{
lean_object* x_14; 
lean_dec(x_11);
lean_ctor_set(x_2, 1, x_6);
lean_ctor_set(x_2, 0, x_1);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_2);
return x_14;
}
}
else
{
uint8_t x_15; 
lean_free_object(x_2);
lean_dec(x_6);
lean_dec(x_1);
x_15 = !lean_is_exclusive(x_11);
if (x_15 == 0)
{
return x_11;
}
else
{
lean_object* x_16; lean_object* x_17; 
x_16 = lean_ctor_get(x_11, 0);
lean_inc(x_16);
lean_dec(x_11);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_16);
return x_17;
}
}
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; 
x_18 = lean_ctor_get(x_2, 0);
x_19 = lean_ctor_get(x_2, 1);
lean_inc(x_19);
lean_inc(x_18);
lean_dec(x_2);
x_20 = lean_alloc_ctor(1, 0, 1);
x_21 = lean_unbox(x_18);
lean_ctor_set_uint8(x_20, 0, x_21);
lean_inc(x_1);
x_22 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_22, 0, x_1);
lean_ctor_set(x_22, 1, x_3);
lean_ctor_set(x_22, 2, x_20);
lean_ctor_set(x_22, 3, x_19);
lean_inc(x_1);
x_23 = lean_register_option(x_1, x_22);
if (lean_obj_tag(x_23) == 0)
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; 
if (lean_is_exclusive(x_23)) {
 lean_ctor_release(x_23, 0);
 x_24 = x_23;
} else {
 lean_dec_ref(x_23);
 x_24 = lean_box(0);
}
x_25 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_25, 0, x_1);
lean_ctor_set(x_25, 1, x_18);
if (lean_is_scalar(x_24)) {
 x_26 = lean_alloc_ctor(0, 1, 0);
} else {
 x_26 = x_24;
}
lean_ctor_set(x_26, 0, x_25);
return x_26;
}
else
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; 
lean_dec(x_18);
lean_dec(x_1);
x_27 = lean_ctor_get(x_23, 0);
lean_inc(x_27);
if (lean_is_exclusive(x_23)) {
 lean_ctor_release(x_23, 0);
 x_28 = x_23;
} else {
 lean_dec_ref(x_23);
 x_28 = lean_box(0);
}
if (lean_is_scalar(x_28)) {
 x_29 = lean_alloc_ctor(1, 1, 0);
} else {
 x_29 = x_28;
}
lean_ctor_set(x_29, 0, x_27);
return x_29;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Language_Lean_initFn_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_() {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_2 = l_Lean_Language_Lean_initFn___closed__2_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_;
x_3 = l_Lean_Language_Lean_initFn___closed__4_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_;
x_4 = l_Lean_Language_Lean_initFn___closed__5_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_;
x_5 = l_Lean_Option_register___at___00Lean_Language_Lean_initFn_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4__spec__0(x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Language_Lean_initFn_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4____boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Language_Lean_initFn_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_();
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_register___at___00Lean_Language_Lean_initFn_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4__spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Option_register___at___00Lean_Language_Lean_initFn_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4__spec__0(x_1, x_2, x_3);
return x_5;
}
}
static lean_object* _init_l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = l_ByteArray_empty;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_IO_withStdout___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__9___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_get_set_stdout(x_1);
x_6 = lean_apply_2(x_2, x_3, lean_box(0));
x_7 = lean_get_set_stdout(x_5);
lean_dec_ref(x_7);
return x_6;
}
}
LEAN_EXPORT lean_object* l_IO_withStdout___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; 
x_6 = l_IO_withStdout___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__9___redArg(x_2, x_3, x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_IO_withStdout___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_IO_withStdout___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__9(x_1, x_2, x_3, x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_IO_withStdin___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__10___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_get_set_stdin(x_1);
x_6 = lean_apply_2(x_2, x_3, lean_box(0));
x_7 = lean_get_set_stdin(x_5);
lean_dec_ref(x_7);
return x_6;
}
}
static lean_object* _init_l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid UTF-8 string", 20, 20);
return x_1;
}
}
static lean_object* _init_l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("String.fromUTF8!", 16, 16);
return x_1;
}
}
static lean_object* _init_l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Init.Data.String.Basic", 22, 22);
return x_1;
}
}
static lean_object* _init_l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__3;
x_2 = lean_unsigned_to_nat(46u);
x_3 = lean_unsigned_to_nat(185u);
x_4 = l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__2;
x_5 = l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__1;
x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1);
return x_6;
}
}
static lean_object* _init_l_panic___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__11___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("", 0, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_panic___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__11(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_panic___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__11___closed__0;
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_IO_withStderr___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__12___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_get_set_stderr(x_1);
x_6 = lean_apply_2(x_2, x_3, lean_box(0));
x_7 = lean_get_set_stderr(x_5);
lean_dec_ref(x_7);
return x_6;
}
}
LEAN_EXPORT lean_object* l_IO_withStderr___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__12(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; 
x_6 = l_IO_withStderr___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__12___redArg(x_2, x_3, x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_IO_withStderr___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_IO_withStderr___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__12(x_1, x_2, x_3, x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg(lean_object* x_1, uint8_t x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_10 = l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__0;
x_11 = lean_st_mk_ref(x_10);
x_12 = lean_st_mk_ref(x_10);
x_13 = l_IO_FS_Stream_ofBuffer(x_11);
lean_inc(x_12);
x_14 = l_IO_FS_Stream_ofBuffer(x_12);
if (x_2 == 0)
{
x_15 = x_1;
goto block_24;
}
else
{
lean_object* x_25; 
lean_inc_ref(x_14);
x_25 = lean_alloc_closure((void*)(l_IO_withStderr___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__12___boxed), 5, 3);
lean_closure_set(x_25, 0, lean_box(0));
lean_closure_set(x_25, 1, x_14);
lean_closure_set(x_25, 2, x_1);
x_15 = x_25;
goto block_24;
}
block_9:
{
lean_object* x_8; 
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_7);
lean_ctor_set(x_8, 1, x_5);
return x_8;
}
block_24:
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; 
x_16 = lean_alloc_closure((void*)(l_IO_withStdout___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__9___boxed), 5, 3);
lean_closure_set(x_16, 0, lean_box(0));
lean_closure_set(x_16, 1, x_14);
lean_closure_set(x_16, 2, x_15);
x_17 = l_IO_withStdin___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__10___redArg(x_13, x_16, x_3);
x_18 = lean_st_ref_get(x_12);
lean_dec(x_12);
x_19 = lean_ctor_get(x_18, 0);
lean_inc_ref(x_19);
lean_dec(x_18);
x_20 = lean_string_validate_utf8(x_19);
if (x_20 == 0)
{
lean_object* x_21; lean_object* x_22; 
lean_dec_ref(x_19);
x_21 = l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__4;
x_22 = l_panic___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__11(x_21);
x_5 = x_17;
x_6 = lean_box(0);
x_7 = x_22;
goto block_9;
}
else
{
lean_object* x_23; 
x_23 = lean_string_from_utf8_unchecked(x_19);
x_5 = x_17;
x_6 = lean_box(0);
x_7 = x_23;
goto block_9;
}
}
}
}
LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; 
x_6 = l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg(x_2, x_3, x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_IO_withStdin___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; 
x_6 = l_IO_withStdin___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__10___redArg(x_2, x_3, x_4);
return x_6;
}
}
static lean_object* _init_l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(32u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg___closed__0;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg___closed__2() {
_start:
{
size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = 5;
x_2 = lean_unsigned_to_nat(0u);
x_3 = l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg___closed__0;
x_4 = l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg___closed__1;
x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_3);
lean_ctor_set(x_5, 2, x_2);
lean_ctor_set(x_5, 3, x_2);
lean_ctor_set_usize(x_5, 4, x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg(lean_object* x_1) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; 
x_3 = lean_st_ref_get(x_1);
x_4 = lean_ctor_get(x_3, 8);
lean_inc_ref(x_4);
lean_dec(x_3);
x_5 = lean_ctor_get(x_4, 2);
lean_inc_ref(x_5);
lean_dec_ref(x_4);
x_6 = lean_st_ref_take(x_1);
x_7 = !lean_is_exclusive(x_6);
if (x_7 == 0)
{
lean_object* x_8; uint8_t x_9; 
x_8 = lean_ctor_get(x_6, 8);
x_9 = !lean_is_exclusive(x_8);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_10 = lean_ctor_get(x_8, 2);
lean_dec(x_10);
x_11 = l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg___closed__2;
lean_ctor_set(x_8, 2, x_11);
x_12 = lean_st_ref_set(x_1, x_6);
x_13 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_13, 0, x_5);
return x_13;
}
else
{
uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_14 = lean_ctor_get_uint8(x_8, sizeof(void*)*3);
x_15 = lean_ctor_get(x_8, 0);
x_16 = lean_ctor_get(x_8, 1);
lean_inc(x_16);
lean_inc(x_15);
lean_dec(x_8);
x_17 = l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg___closed__2;
x_18 = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(x_18, 0, x_15);
lean_ctor_set(x_18, 1, x_16);
lean_ctor_set(x_18, 2, x_17);
lean_ctor_set_uint8(x_18, sizeof(void*)*3, x_14);
lean_ctor_set(x_6, 8, x_18);
x_19 = lean_st_ref_set(x_1, x_6);
x_20 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_20, 0, x_5);
return x_20;
}
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; 
x_21 = lean_ctor_get(x_6, 8);
x_22 = lean_ctor_get(x_6, 0);
x_23 = lean_ctor_get(x_6, 1);
x_24 = lean_ctor_get(x_6, 2);
x_25 = lean_ctor_get(x_6, 3);
x_26 = lean_ctor_get(x_6, 4);
x_27 = lean_ctor_get(x_6, 5);
x_28 = lean_ctor_get(x_6, 6);
x_29 = lean_ctor_get(x_6, 7);
x_30 = lean_ctor_get(x_6, 9);
x_31 = lean_ctor_get(x_6, 10);
lean_inc(x_31);
lean_inc(x_30);
lean_inc(x_21);
lean_inc(x_29);
lean_inc(x_28);
lean_inc(x_27);
lean_inc(x_26);
lean_inc(x_25);
lean_inc(x_24);
lean_inc(x_23);
lean_inc(x_22);
lean_dec(x_6);
x_32 = lean_ctor_get_uint8(x_21, sizeof(void*)*3);
x_33 = lean_ctor_get(x_21, 0);
lean_inc_ref(x_33);
x_34 = lean_ctor_get(x_21, 1);
lean_inc_ref(x_34);
if (lean_is_exclusive(x_21)) {
 lean_ctor_release(x_21, 0);
 lean_ctor_release(x_21, 1);
 lean_ctor_release(x_21, 2);
 x_35 = x_21;
} else {
 lean_dec_ref(x_21);
 x_35 = lean_box(0);
}
x_36 = l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg___closed__2;
if (lean_is_scalar(x_35)) {
 x_37 = lean_alloc_ctor(0, 3, 1);
} else {
 x_37 = x_35;
}
lean_ctor_set(x_37, 0, x_33);
lean_ctor_set(x_37, 1, x_34);
lean_ctor_set(x_37, 2, x_36);
lean_ctor_set_uint8(x_37, sizeof(void*)*3, x_32);
x_38 = lean_alloc_ctor(0, 11, 0);
lean_ctor_set(x_38, 0, x_22);
lean_ctor_set(x_38, 1, x_23);
lean_ctor_set(x_38, 2, x_24);
lean_ctor_set(x_38, 3, x_25);
lean_ctor_set(x_38, 4, x_26);
lean_ctor_set(x_38, 5, x_27);
lean_ctor_set(x_38, 6, x_28);
lean_ctor_set(x_38, 7, x_29);
lean_ctor_set(x_38, 8, x_37);
lean_ctor_set(x_38, 9, x_30);
lean_ctor_set(x_38, 10, x_31);
x_39 = lean_st_ref_set(x_1, x_38);
x_40 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_40, 0, x_5);
return x_40;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg(x_2);
return x_4;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Elab_Command_instInhabitedScope_default;
return x_1;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0));
return x_1;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__1;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__2;
x_2 = lean_unsigned_to_nat(0u);
x_3 = lean_alloc_ctor(0, 9, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_2);
lean_ctor_set(x_3, 2, x_2);
lean_ctor_set(x_3, 3, x_1);
lean_ctor_set(x_3, 4, x_1);
lean_ctor_set(x_3, 5, x_1);
lean_ctor_set(x_3, 6, x_1);
lean_ctor_set(x_3, 7, x_1);
lean_ctor_set(x_3, 8, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(32u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__4;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__6() {
_start:
{
size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = 5;
x_2 = lean_unsigned_to_nat(0u);
x_3 = l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__4;
x_4 = l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__5;
x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_3);
lean_ctor_set(x_5, 2, x_2);
lean_ctor_set(x_5, 3, x_2);
lean_ctor_set_usize(x_5, 4, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = lean_box(1);
x_2 = l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__6;
x_3 = l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__2;
x_4 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_4 = lean_st_ref_get(x_2);
x_5 = lean_ctor_get(x_4, 0);
lean_inc_ref(x_5);
lean_dec(x_4);
x_6 = lean_st_ref_get(x_2);
x_7 = lean_ctor_get(x_6, 2);
lean_inc(x_7);
lean_dec(x_6);
x_8 = l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__0;
x_9 = l_List_head_x21___redArg(x_8, x_7);
lean_dec(x_7);
x_10 = lean_ctor_get(x_9, 1);
lean_inc(x_10);
lean_dec(x_9);
x_11 = l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__3;
x_12 = l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__7;
x_13 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_13, 0, x_5);
lean_ctor_set(x_13, 1, x_11);
lean_ctor_set(x_13, 2, x_12);
lean_ctor_set(x_13, 3, x_10);
x_14 = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(x_14, 0, x_13);
lean_ctor_set(x_14, 1, x_1);
x_15 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_15, 0, x_14);
return x_15;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg(x_1, x_3);
return x_5;
}
}
static lean_object* _init_l_Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2___lam__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("trace", 5, 5);
return x_1;
}
}
LEAN_EXPORT uint8_t l_Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2___lam__0(uint8_t x_1, uint8_t x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_3) == 1)
{
lean_object* x_4; 
x_4 = lean_ctor_get(x_3, 0);
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; uint8_t x_7; 
x_5 = lean_ctor_get(x_3, 1);
x_6 = l_Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2___lam__0___closed__0;
x_7 = lean_string_dec_eq(x_5, x_6);
if (x_7 == 0)
{
return x_1;
}
else
{
return x_2;
}
}
else
{
return x_1;
}
}
else
{
return x_1;
}
}
}
LEAN_EXPORT lean_object* l_Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; uint8_t x_5; uint8_t x_6; lean_object* x_7; 
x_4 = lean_unbox(x_1);
x_5 = lean_unbox(x_2);
x_6 = l_Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2___lam__0(x_4, x_5, x_3);
lean_dec(x_3);
x_7 = lean_box(x_6);
return x_7;
}
}
static lean_object* _init_l_Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_warningAsError;
return x_1;
}
}
LEAN_EXPORT uint8_t l_Lean_Option_get___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_ctor_get(x_2, 1);
x_5 = l_Lean_KVMap_find(x_1, x_3);
if (lean_obj_tag(x_5) == 0)
{
uint8_t x_6; 
x_6 = lean_unbox(x_4);
return x_6;
}
else
{
lean_object* x_7; 
x_7 = lean_ctor_get(x_5, 0);
lean_inc(x_7);
lean_dec_ref(x_5);
if (lean_obj_tag(x_7) == 1)
{
uint8_t x_8; 
x_8 = lean_ctor_get_uint8(x_7, 0);
lean_dec_ref(x_7);
return x_8;
}
else
{
uint8_t x_9; 
lean_dec(x_7);
x_9 = lean_unbox(x_4);
return x_9;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; uint8_t x_82; uint8_t x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; lean_object* x_87; uint8_t x_116; uint8_t x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; lean_object* x_121; uint8_t x_125; uint8_t x_126; lean_object* x_127; uint8_t x_128; uint8_t x_139; uint8_t x_140; uint8_t x_141; lean_object* x_142; uint8_t x_143; uint8_t x_145; uint8_t x_158; 
x_139 = 2;
x_158 = l_Lean_instBEqMessageSeverity_beq(x_3, x_139);
if (x_158 == 0)
{
x_145 = x_158;
goto block_157;
}
else
{
uint8_t x_159; 
lean_inc_ref(x_2);
x_159 = l_Lean_MessageData_hasSyntheticSorry(x_2);
x_145 = x_159;
goto block_157;
}
block_81:
{
lean_object* x_17; 
x_17 = l_Lean_Elab_Command_getScope___redArg(x_15);
if (lean_obj_tag(x_17) == 0)
{
lean_object* x_18; lean_object* x_19; 
x_18 = lean_ctor_get(x_17, 0);
lean_inc(x_18);
lean_dec_ref(x_17);
x_19 = l_Lean_Elab_Command_getScope___redArg(x_15);
if (lean_obj_tag(x_19) == 0)
{
uint8_t x_20; 
x_20 = !lean_is_exclusive(x_19);
if (x_20 == 0)
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; 
x_21 = lean_ctor_get(x_19, 0);
x_22 = lean_st_ref_take(x_15);
x_23 = lean_ctor_get(x_18, 2);
lean_inc(x_23);
lean_dec(x_18);
x_24 = lean_ctor_get(x_21, 3);
lean_inc(x_24);
lean_dec(x_21);
x_25 = !lean_is_exclusive(x_22);
if (x_25 == 0)
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_26 = lean_ctor_get(x_22, 1);
x_27 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_27, 0, x_23);
lean_ctor_set(x_27, 1, x_24);
x_28 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_28, 0, x_27);
lean_ctor_set(x_28, 1, x_12);
x_29 = lean_alloc_ctor(0, 5, 3);
lean_ctor_set(x_29, 0, x_11);
lean_ctor_set(x_29, 1, x_13);
lean_ctor_set(x_29, 2, x_9);
lean_ctor_set(x_29, 3, x_10);
lean_ctor_set(x_29, 4, x_28);
lean_ctor_set_uint8(x_29, sizeof(void*)*5, x_8);
lean_ctor_set_uint8(x_29, sizeof(void*)*5 + 1, x_14);
lean_ctor_set_uint8(x_29, sizeof(void*)*5 + 2, x_4);
x_30 = l_Lean_MessageLog_add(x_29, x_26);
lean_ctor_set(x_22, 1, x_30);
x_31 = lean_st_ref_set(x_15, x_22);
x_32 = lean_box(0);
lean_ctor_set(x_19, 0, x_32);
return x_19;
}
else
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; 
x_33 = lean_ctor_get(x_22, 0);
x_34 = lean_ctor_get(x_22, 1);
x_35 = lean_ctor_get(x_22, 2);
x_36 = lean_ctor_get(x_22, 3);
x_37 = lean_ctor_get(x_22, 4);
x_38 = lean_ctor_get(x_22, 5);
x_39 = lean_ctor_get(x_22, 6);
x_40 = lean_ctor_get(x_22, 7);
x_41 = lean_ctor_get(x_22, 8);
x_42 = lean_ctor_get(x_22, 9);
x_43 = lean_ctor_get(x_22, 10);
lean_inc(x_43);
lean_inc(x_42);
lean_inc(x_41);
lean_inc(x_40);
lean_inc(x_39);
lean_inc(x_38);
lean_inc(x_37);
lean_inc(x_36);
lean_inc(x_35);
lean_inc(x_34);
lean_inc(x_33);
lean_dec(x_22);
x_44 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_44, 0, x_23);
lean_ctor_set(x_44, 1, x_24);
x_45 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_45, 0, x_44);
lean_ctor_set(x_45, 1, x_12);
x_46 = lean_alloc_ctor(0, 5, 3);
lean_ctor_set(x_46, 0, x_11);
lean_ctor_set(x_46, 1, x_13);
lean_ctor_set(x_46, 2, x_9);
lean_ctor_set(x_46, 3, x_10);
lean_ctor_set(x_46, 4, x_45);
lean_ctor_set_uint8(x_46, sizeof(void*)*5, x_8);
lean_ctor_set_uint8(x_46, sizeof(void*)*5 + 1, x_14);
lean_ctor_set_uint8(x_46, sizeof(void*)*5 + 2, x_4);
x_47 = l_Lean_MessageLog_add(x_46, x_34);
x_48 = lean_alloc_ctor(0, 11, 0);
lean_ctor_set(x_48, 0, x_33);
lean_ctor_set(x_48, 1, x_47);
lean_ctor_set(x_48, 2, x_35);
lean_ctor_set(x_48, 3, x_36);
lean_ctor_set(x_48, 4, x_37);
lean_ctor_set(x_48, 5, x_38);
lean_ctor_set(x_48, 6, x_39);
lean_ctor_set(x_48, 7, x_40);
lean_ctor_set(x_48, 8, x_41);
lean_ctor_set(x_48, 9, x_42);
lean_ctor_set(x_48, 10, x_43);
x_49 = lean_st_ref_set(x_15, x_48);
x_50 = lean_box(0);
lean_ctor_set(x_19, 0, x_50);
return x_19;
}
}
else
{
lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; 
x_51 = lean_ctor_get(x_19, 0);
lean_inc(x_51);
lean_dec(x_19);
x_52 = lean_st_ref_take(x_15);
x_53 = lean_ctor_get(x_18, 2);
lean_inc(x_53);
lean_dec(x_18);
x_54 = lean_ctor_get(x_51, 3);
lean_inc(x_54);
lean_dec(x_51);
x_55 = lean_ctor_get(x_52, 0);
lean_inc_ref(x_55);
x_56 = lean_ctor_get(x_52, 1);
lean_inc_ref(x_56);
x_57 = lean_ctor_get(x_52, 2);
lean_inc(x_57);
x_58 = lean_ctor_get(x_52, 3);
lean_inc(x_58);
x_59 = lean_ctor_get(x_52, 4);
lean_inc(x_59);
x_60 = lean_ctor_get(x_52, 5);
lean_inc(x_60);
x_61 = lean_ctor_get(x_52, 6);
lean_inc_ref(x_61);
x_62 = lean_ctor_get(x_52, 7);
lean_inc_ref(x_62);
x_63 = lean_ctor_get(x_52, 8);
lean_inc_ref(x_63);
x_64 = lean_ctor_get(x_52, 9);
lean_inc_ref(x_64);
x_65 = lean_ctor_get(x_52, 10);
lean_inc_ref(x_65);
if (lean_is_exclusive(x_52)) {
 lean_ctor_release(x_52, 0);
 lean_ctor_release(x_52, 1);
 lean_ctor_release(x_52, 2);
 lean_ctor_release(x_52, 3);
 lean_ctor_release(x_52, 4);
 lean_ctor_release(x_52, 5);
 lean_ctor_release(x_52, 6);
 lean_ctor_release(x_52, 7);
 lean_ctor_release(x_52, 8);
 lean_ctor_release(x_52, 9);
 lean_ctor_release(x_52, 10);
 x_66 = x_52;
} else {
 lean_dec_ref(x_52);
 x_66 = lean_box(0);
}
x_67 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_67, 0, x_53);
lean_ctor_set(x_67, 1, x_54);
x_68 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_68, 0, x_67);
lean_ctor_set(x_68, 1, x_12);
x_69 = lean_alloc_ctor(0, 5, 3);
lean_ctor_set(x_69, 0, x_11);
lean_ctor_set(x_69, 1, x_13);
lean_ctor_set(x_69, 2, x_9);
lean_ctor_set(x_69, 3, x_10);
lean_ctor_set(x_69, 4, x_68);
lean_ctor_set_uint8(x_69, sizeof(void*)*5, x_8);
lean_ctor_set_uint8(x_69, sizeof(void*)*5 + 1, x_14);
lean_ctor_set_uint8(x_69, sizeof(void*)*5 + 2, x_4);
x_70 = l_Lean_MessageLog_add(x_69, x_56);
if (lean_is_scalar(x_66)) {
 x_71 = lean_alloc_ctor(0, 11, 0);
} else {
 x_71 = x_66;
}
lean_ctor_set(x_71, 0, x_55);
lean_ctor_set(x_71, 1, x_70);
lean_ctor_set(x_71, 2, x_57);
lean_ctor_set(x_71, 3, x_58);
lean_ctor_set(x_71, 4, x_59);
lean_ctor_set(x_71, 5, x_60);
lean_ctor_set(x_71, 6, x_61);
lean_ctor_set(x_71, 7, x_62);
lean_ctor_set(x_71, 8, x_63);
lean_ctor_set(x_71, 9, x_64);
lean_ctor_set(x_71, 10, x_65);
x_72 = lean_st_ref_set(x_15, x_71);
x_73 = lean_box(0);
x_74 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_74, 0, x_73);
return x_74;
}
}
else
{
uint8_t x_75; 
lean_dec(x_18);
lean_dec_ref(x_13);
lean_dec_ref(x_12);
lean_dec_ref(x_11);
lean_dec_ref(x_10);
lean_dec(x_9);
x_75 = !lean_is_exclusive(x_19);
if (x_75 == 0)
{
return x_19;
}
else
{
lean_object* x_76; lean_object* x_77; 
x_76 = lean_ctor_get(x_19, 0);
lean_inc(x_76);
lean_dec(x_19);
x_77 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_77, 0, x_76);
return x_77;
}
}
}
else
{
uint8_t x_78; 
lean_dec_ref(x_13);
lean_dec_ref(x_12);
lean_dec_ref(x_11);
lean_dec_ref(x_10);
lean_dec(x_9);
x_78 = !lean_is_exclusive(x_17);
if (x_78 == 0)
{
return x_17;
}
else
{
lean_object* x_79; lean_object* x_80; 
x_79 = lean_ctor_get(x_17, 0);
lean_inc(x_79);
lean_dec(x_17);
x_80 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_80, 0, x_79);
return x_80;
}
}
}
block_115:
{
lean_object* x_88; lean_object* x_89; uint8_t x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; 
x_88 = lean_ctor_get(x_5, 0);
lean_inc_ref(x_88);
x_89 = lean_ctor_get(x_5, 1);
lean_inc_ref(x_89);
x_90 = lean_ctor_get_uint8(x_5, sizeof(void*)*10);
lean_dec_ref(x_5);
x_91 = l___private_Lean_Log_0__Lean_MessageData_appendDescriptionWidgetIfNamed(x_2);
x_92 = l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg(x_91, x_6);
x_93 = !lean_is_exclusive(x_92);
if (x_93 == 0)
{
lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; 
x_94 = lean_ctor_get(x_92, 0);
lean_inc_ref(x_89);
x_95 = l_Lean_FileMap_toPosition(x_89, x_86);
lean_dec(x_86);
x_96 = l_Lean_FileMap_toPosition(x_89, x_87);
lean_dec(x_87);
x_97 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_97, 0, x_96);
x_98 = l_panic___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__11___closed__0;
if (x_90 == 0)
{
lean_free_object(x_92);
x_8 = x_83;
x_9 = x_97;
x_10 = x_98;
x_11 = x_88;
x_12 = x_94;
x_13 = x_95;
x_14 = x_85;
x_15 = x_6;
x_16 = lean_box(0);
goto block_81;
}
else
{
lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; 
x_99 = lean_box(x_82);
x_100 = lean_box(x_90);
x_101 = lean_alloc_closure((void*)(l_Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2___lam__0___boxed), 3, 2);
lean_closure_set(x_101, 0, x_99);
lean_closure_set(x_101, 1, x_100);
lean_inc(x_94);
x_102 = l_Lean_MessageData_hasTag(x_101, x_94);
if (x_102 == 0)
{
lean_object* x_103; 
lean_dec_ref(x_97);
lean_dec_ref(x_95);
lean_dec(x_94);
lean_dec_ref(x_88);
x_103 = lean_box(0);
lean_ctor_set(x_92, 0, x_103);
return x_92;
}
else
{
lean_free_object(x_92);
x_8 = x_83;
x_9 = x_97;
x_10 = x_98;
x_11 = x_88;
x_12 = x_94;
x_13 = x_95;
x_14 = x_85;
x_15 = x_6;
x_16 = lean_box(0);
goto block_81;
}
}
}
else
{
lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; 
x_104 = lean_ctor_get(x_92, 0);
lean_inc(x_104);
lean_dec(x_92);
lean_inc_ref(x_89);
x_105 = l_Lean_FileMap_toPosition(x_89, x_86);
lean_dec(x_86);
x_106 = l_Lean_FileMap_toPosition(x_89, x_87);
lean_dec(x_87);
x_107 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_107, 0, x_106);
x_108 = l_panic___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__11___closed__0;
if (x_90 == 0)
{
x_8 = x_83;
x_9 = x_107;
x_10 = x_108;
x_11 = x_88;
x_12 = x_104;
x_13 = x_105;
x_14 = x_85;
x_15 = x_6;
x_16 = lean_box(0);
goto block_81;
}
else
{
lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_112; 
x_109 = lean_box(x_82);
x_110 = lean_box(x_90);
x_111 = lean_alloc_closure((void*)(l_Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2___lam__0___boxed), 3, 2);
lean_closure_set(x_111, 0, x_109);
lean_closure_set(x_111, 1, x_110);
lean_inc(x_104);
x_112 = l_Lean_MessageData_hasTag(x_111, x_104);
if (x_112 == 0)
{
lean_object* x_113; lean_object* x_114; 
lean_dec_ref(x_107);
lean_dec_ref(x_105);
lean_dec(x_104);
lean_dec_ref(x_88);
x_113 = lean_box(0);
x_114 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_114, 0, x_113);
return x_114;
}
else
{
x_8 = x_83;
x_9 = x_107;
x_10 = x_108;
x_11 = x_88;
x_12 = x_104;
x_13 = x_105;
x_14 = x_85;
x_15 = x_6;
x_16 = lean_box(0);
goto block_81;
}
}
}
}
block_124:
{
lean_object* x_122; 
x_122 = l_Lean_Syntax_getTailPos_x3f(x_119, x_117);
lean_dec(x_119);
if (lean_obj_tag(x_122) == 0)
{
lean_inc(x_121);
x_82 = x_116;
x_83 = x_117;
x_84 = lean_box(0);
x_85 = x_120;
x_86 = x_121;
x_87 = x_121;
goto block_115;
}
else
{
lean_object* x_123; 
x_123 = lean_ctor_get(x_122, 0);
lean_inc(x_123);
lean_dec_ref(x_122);
x_82 = x_116;
x_83 = x_117;
x_84 = lean_box(0);
x_85 = x_120;
x_86 = x_121;
x_87 = x_123;
goto block_115;
}
}
block_138:
{
lean_object* x_129; 
x_129 = l_Lean_Elab_Command_getRef___redArg(x_5);
if (lean_obj_tag(x_129) == 0)
{
lean_object* x_130; lean_object* x_131; lean_object* x_132; 
x_130 = lean_ctor_get(x_129, 0);
lean_inc(x_130);
lean_dec_ref(x_129);
x_131 = l_Lean_replaceRef(x_1, x_130);
lean_dec(x_130);
x_132 = l_Lean_Syntax_getPos_x3f(x_131, x_126);
if (lean_obj_tag(x_132) == 0)
{
lean_object* x_133; 
x_133 = lean_unsigned_to_nat(0u);
x_116 = x_125;
x_117 = x_126;
x_118 = lean_box(0);
x_119 = x_131;
x_120 = x_128;
x_121 = x_133;
goto block_124;
}
else
{
lean_object* x_134; 
x_134 = lean_ctor_get(x_132, 0);
lean_inc(x_134);
lean_dec_ref(x_132);
x_116 = x_125;
x_117 = x_126;
x_118 = lean_box(0);
x_119 = x_131;
x_120 = x_128;
x_121 = x_134;
goto block_124;
}
}
else
{
uint8_t x_135; 
lean_dec_ref(x_5);
lean_dec_ref(x_2);
x_135 = !lean_is_exclusive(x_129);
if (x_135 == 0)
{
return x_129;
}
else
{
lean_object* x_136; lean_object* x_137; 
x_136 = lean_ctor_get(x_129, 0);
lean_inc(x_136);
lean_dec(x_129);
x_137 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_137, 0, x_136);
return x_137;
}
}
}
block_144:
{
if (x_143 == 0)
{
x_125 = x_140;
x_126 = x_141;
x_127 = lean_box(0);
x_128 = x_3;
goto block_138;
}
else
{
x_125 = x_140;
x_126 = x_141;
x_127 = lean_box(0);
x_128 = x_139;
goto block_138;
}
}
block_157:
{
if (x_145 == 0)
{
lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_151; uint8_t x_152; 
x_146 = lean_st_ref_get(x_6);
x_147 = lean_ctor_get(x_146, 2);
lean_inc(x_147);
lean_dec(x_146);
x_148 = l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__0;
x_149 = l_List_head_x21___redArg(x_148, x_147);
lean_dec(x_147);
x_150 = lean_ctor_get(x_149, 1);
lean_inc(x_150);
lean_dec(x_149);
x_151 = 1;
x_152 = l_Lean_instBEqMessageSeverity_beq(x_3, x_151);
if (x_152 == 0)
{
lean_dec(x_150);
x_140 = x_145;
x_141 = x_145;
x_142 = lean_box(0);
x_143 = x_152;
goto block_144;
}
else
{
lean_object* x_153; uint8_t x_154; 
x_153 = l_Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2___closed__0;
x_154 = l_Lean_Option_get___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__1(x_150, x_153);
lean_dec(x_150);
x_140 = x_145;
x_141 = x_145;
x_142 = lean_box(0);
x_143 = x_154;
goto block_144;
}
}
else
{
lean_object* x_155; lean_object* x_156; 
lean_dec_ref(x_5);
lean_dec_ref(x_2);
x_155 = lean_box(0);
x_156 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_156, 0, x_155);
return x_156;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_log___at___00Lean_logError___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__5_spec__5(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_Elab_Command_getRef___redArg(x_4);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
lean_dec_ref(x_7);
x_9 = l_Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2(x_8, x_1, x_2, x_3, x_4, x_5);
lean_dec(x_8);
return x_9;
}
else
{
uint8_t x_10; 
lean_dec_ref(x_4);
lean_dec_ref(x_1);
x_10 = !lean_is_exclusive(x_7);
if (x_10 == 0)
{
return x_7;
}
else
{
lean_object* x_11; lean_object* x_12; 
x_11 = lean_ctor_get(x_7, 0);
lean_inc(x_11);
lean_dec(x_7);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_logError___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_5; uint8_t x_6; lean_object* x_7; 
x_5 = 2;
x_6 = 0;
x_7 = l_Lean_log___at___00Lean_logError___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__5_spec__5(x_1, x_5, x_6, x_2, x_3);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_6; uint8_t x_7; lean_object* x_8; 
x_6 = 2;
x_7 = 0;
x_8 = l_Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2(x_1, x_2, x_6, x_7, x_3, x_4);
return x_8;
}
}
static lean_object* _init_l_Lean_Language_DynamicSnapshot_ofTyped___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__14___lam__0___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Language_DynamicSnapshot_ofTyped___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__14___lam__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Language_DynamicSnapshot_ofTyped___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__14___lam__0___closed__0;
x_4 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Language_DynamicSnapshot_ofTyped___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__14(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
lean_inc_ref(x_2);
x_3 = lean_alloc_closure((void*)(l_Lean_Language_DynamicSnapshot_ofTyped___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__14___lam__0), 2, 1);
lean_closure_set(x_3, 0, x_2);
x_4 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
x_5 = lean_mk_thunk(x_3);
x_6 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_6, 0, x_4);
lean_ctor_set(x_6, 1, x_5);
return x_6;
}
}
static lean_object* _init_l_Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("internal exception: ", 20, 20);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2___closed__0;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_1, 0);
lean_inc(x_5);
x_6 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_6);
lean_dec_ref(x_1);
x_7 = l_Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2(x_5, x_6, x_2, x_3);
lean_dec(x_5);
return x_7;
}
else
{
lean_object* x_8; uint8_t x_9; uint8_t x_33; 
x_8 = lean_ctor_get(x_1, 0);
lean_inc(x_8);
x_33 = l_Lean_Elab_isAbortExceptionId(x_8);
if (x_33 == 0)
{
uint8_t x_34; 
x_34 = l_Lean_Exception_isInterrupt(x_1);
lean_dec_ref(x_1);
x_9 = x_34;
goto block_32;
}
else
{
lean_dec_ref(x_1);
x_9 = x_33;
goto block_32;
}
block_32:
{
if (x_9 == 0)
{
lean_object* x_10; 
x_10 = l_Lean_InternalExceptionId_getName(x_8);
lean_dec(x_8);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
lean_dec_ref(x_10);
x_12 = l_Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2___closed__1;
x_13 = l_Lean_MessageData_ofName(x_11);
x_14 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_14, 0, x_12);
lean_ctor_set(x_14, 1, x_13);
x_15 = l_Lean_logError___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__5(x_14, x_2, x_3);
return x_15;
}
else
{
uint8_t x_16; 
x_16 = !lean_is_exclusive(x_10);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_17 = lean_ctor_get(x_10, 0);
x_18 = lean_ctor_get(x_2, 7);
lean_inc(x_18);
lean_dec_ref(x_2);
x_19 = lean_io_error_to_string(x_17);
x_20 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_20, 0, x_19);
x_21 = l_Lean_MessageData_ofFormat(x_20);
x_22 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_22, 0, x_18);
lean_ctor_set(x_22, 1, x_21);
lean_ctor_set(x_10, 0, x_22);
return x_10;
}
else
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_23 = lean_ctor_get(x_10, 0);
lean_inc(x_23);
lean_dec(x_10);
x_24 = lean_ctor_get(x_2, 7);
lean_inc(x_24);
lean_dec_ref(x_2);
x_25 = lean_io_error_to_string(x_23);
x_26 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_26, 0, x_25);
x_27 = l_Lean_MessageData_ofFormat(x_26);
x_28 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_28, 0, x_24);
lean_ctor_set(x_28, 1, x_27);
x_29 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_29, 0, x_28);
return x_29;
}
}
}
else
{
lean_object* x_30; lean_object* x_31; 
lean_dec(x_8);
lean_dec_ref(x_2);
x_30 = lean_box(0);
x_31 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_31, 0, x_30);
return x_31;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; 
lean_inc(x_3);
lean_inc_ref(x_2);
x_5 = lean_apply_3(x_1, x_2, x_3, lean_box(0));
if (lean_obj_tag(x_5) == 0)
{
lean_dec(x_3);
lean_dec_ref(x_2);
return x_5;
}
else
{
lean_object* x_6; uint8_t x_7; 
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
x_7 = l_Lean_Exception_isInterrupt(x_6);
if (x_7 == 0)
{
lean_object* x_8; 
lean_dec_ref(x_5);
x_8 = l_Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2(x_6, x_2, x_3);
lean_dec(x_3);
return x_8;
}
else
{
lean_dec(x_6);
lean_dec(x_3);
lean_dec_ref(x_2);
return x_5;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; lean_object* x_6; 
x_5 = l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg(x_3);
lean_dec_ref(x_5);
x_6 = l_Lean_Elab_Command_elabCommandTopLevel(x_1, x_2, x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; lean_object* x_7; lean_object* x_10; 
x_10 = l_Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2(x_1, x_2, x_3);
if (lean_obj_tag(x_10) == 0)
{
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_11; 
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
lean_dec_ref(x_10);
x_6 = x_11;
x_7 = lean_box(0);
goto block_9;
}
else
{
uint8_t x_12; 
x_12 = !lean_is_exclusive(x_10);
if (x_12 == 0)
{
return x_10;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_10, 0);
lean_inc(x_13);
lean_dec(x_10);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
}
else
{
lean_object* x_15; 
lean_dec_ref(x_10);
x_15 = lean_box(0);
x_6 = x_15;
x_7 = lean_box(0);
goto block_9;
}
block_9:
{
lean_object* x_8; 
x_8 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_8, 0, x_6);
return x_8;
}
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_MessageLog_empty;
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Language_instImpl_00___x40_Lean_Language_Basic_3093936625____hygCtx___hyg_29_;
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_firstFrontendMacroScope;
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_internal_cmdlineSnapshots;
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("process", 7, 7);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("doElab", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__5;
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__4;
x_3 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__4;
x_4 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__2;
x_5 = l_Lean_Name_mkStr5(x_4, x_3, x_4, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__7() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__6;
x_3 = l_Lean_Name_toString(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Language_Snapshot_Diagnostics_empty;
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Core_stderrAsMessages;
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___lam__0(x_1, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___lam__1(x_1, x_2, x_3, x_4);
lean_dec_ref(x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
uint8_t x_8; 
x_8 = !lean_is_exclusive(x_2);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_56; 
x_9 = lean_ctor_get(x_2, 2);
x_10 = lean_ctor_get(x_2, 10);
lean_dec(x_10);
x_11 = lean_ctor_get(x_2, 9);
lean_dec(x_11);
x_12 = lean_ctor_get(x_2, 1);
lean_dec(x_12);
x_13 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__0;
x_14 = lean_unsigned_to_nat(0u);
x_15 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__17;
x_16 = l_Lean_Language_DynamicSnapshot_ofTyped___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__14___lam__0___closed__0;
lean_inc(x_9);
lean_ctor_set(x_2, 10, x_16);
lean_ctor_set(x_2, 9, x_15);
lean_ctor_set(x_2, 1, x_13);
x_17 = lean_st_mk_ref(x_2);
x_18 = lean_ctor_get(x_6, 0);
x_19 = lean_ctor_get(x_18, 1);
lean_inc_ref(x_19);
x_20 = lean_ctor_get(x_18, 2);
lean_inc_ref(x_20);
x_21 = l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__0;
x_22 = l_List_head_x21___redArg(x_21, x_9);
lean_dec(x_9);
x_23 = lean_ctor_get(x_22, 1);
lean_inc(x_23);
lean_dec(x_22);
x_24 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___lam__0___boxed), 4, 1);
lean_closure_set(x_24, 0, x_1);
x_25 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__1;
x_26 = lean_box(0);
x_27 = lean_box(0);
x_28 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__2;
x_29 = lean_box(0);
x_30 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__3;
x_31 = l_Lean_Option_get___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__1(x_23, x_30);
if (x_31 == 0)
{
lean_object* x_77; 
lean_inc_ref(x_4);
x_77 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_77, 0, x_4);
x_56 = x_77;
goto block_76;
}
else
{
x_56 = x_27;
goto block_76;
}
block_55:
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; 
x_36 = lean_ctor_get(x_4, 1);
lean_inc(x_36);
lean_dec_ref(x_4);
x_37 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__7;
x_38 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__8;
x_39 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_39, 0, x_37);
lean_ctor_set(x_39, 1, x_38);
lean_ctor_set(x_39, 2, x_27);
lean_ctor_set(x_39, 3, x_15);
lean_ctor_set_uint8(x_39, sizeof(void*)*4, x_33);
x_40 = l_Lean_Language_DynamicSnapshot_ofTyped___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__14(x_25, x_39);
x_41 = lean_io_promise_resolve(x_40, x_36);
lean_dec(x_36);
x_42 = !lean_is_exclusive(x_32);
if (x_42 == 0)
{
lean_object* x_43; 
x_43 = lean_ctor_get(x_32, 1);
lean_dec(x_43);
lean_ctor_set(x_32, 1, x_34);
return x_32;
}
else
{
lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; 
x_44 = lean_ctor_get(x_32, 0);
x_45 = lean_ctor_get(x_32, 2);
x_46 = lean_ctor_get(x_32, 3);
x_47 = lean_ctor_get(x_32, 4);
x_48 = lean_ctor_get(x_32, 5);
x_49 = lean_ctor_get(x_32, 6);
x_50 = lean_ctor_get(x_32, 7);
x_51 = lean_ctor_get(x_32, 8);
x_52 = lean_ctor_get(x_32, 9);
x_53 = lean_ctor_get(x_32, 10);
lean_inc(x_53);
lean_inc(x_52);
lean_inc(x_51);
lean_inc(x_50);
lean_inc(x_49);
lean_inc(x_48);
lean_inc(x_47);
lean_inc(x_46);
lean_inc(x_45);
lean_inc(x_44);
lean_dec(x_32);
x_54 = lean_alloc_ctor(0, 11, 0);
lean_ctor_set(x_54, 0, x_44);
lean_ctor_set(x_54, 1, x_34);
lean_ctor_set(x_54, 2, x_45);
lean_ctor_set(x_54, 3, x_46);
lean_ctor_set(x_54, 4, x_47);
lean_ctor_set(x_54, 5, x_48);
lean_ctor_set(x_54, 6, x_49);
lean_ctor_set(x_54, 7, x_50);
lean_ctor_set(x_54, 8, x_51);
lean_ctor_set(x_54, 9, x_52);
lean_ctor_set(x_54, 10, x_53);
return x_54;
}
}
block_76:
{
lean_object* x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; 
x_57 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_57, 0, x_5);
x_58 = 0;
lean_inc(x_3);
lean_inc_ref(x_20);
lean_inc_ref(x_19);
x_59 = lean_alloc_ctor(0, 10, 1);
lean_ctor_set(x_59, 0, x_19);
lean_ctor_set(x_59, 1, x_20);
lean_ctor_set(x_59, 2, x_14);
lean_ctor_set(x_59, 3, x_3);
lean_ctor_set(x_59, 4, x_26);
lean_ctor_set(x_59, 5, x_27);
lean_ctor_set(x_59, 6, x_28);
lean_ctor_set(x_59, 7, x_29);
lean_ctor_set(x_59, 8, x_56);
lean_ctor_set(x_59, 9, x_57);
lean_ctor_set_uint8(x_59, sizeof(void*)*10, x_58);
lean_inc(x_17);
x_60 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___lam__1___boxed), 5, 3);
lean_closure_set(x_60, 0, x_24);
lean_closure_set(x_60, 1, x_59);
lean_closure_set(x_60, 2, x_17);
x_61 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__9;
x_62 = l_Lean_Option_get___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__1(x_23, x_61);
lean_dec(x_23);
x_63 = l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg(x_60, x_62, x_6);
x_64 = lean_ctor_get(x_63, 0);
lean_inc(x_64);
lean_dec_ref(x_63);
x_65 = lean_st_ref_get(x_17);
lean_dec(x_17);
x_66 = lean_ctor_get(x_65, 1);
lean_inc_ref(x_66);
x_67 = lean_string_utf8_byte_size(x_64);
x_68 = lean_nat_dec_eq(x_67, x_14);
lean_dec(x_67);
if (x_68 == 0)
{
lean_object* x_69; uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; 
x_69 = l_Lean_FileMap_toPosition(x_20, x_3);
lean_dec(x_3);
x_70 = 0;
x_71 = l_panic___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__11___closed__0;
x_72 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_72, 0, x_64);
x_73 = l_Lean_MessageData_ofFormat(x_72);
x_74 = lean_alloc_ctor(0, 5, 3);
lean_ctor_set(x_74, 0, x_19);
lean_ctor_set(x_74, 1, x_69);
lean_ctor_set(x_74, 2, x_27);
lean_ctor_set(x_74, 3, x_71);
lean_ctor_set(x_74, 4, x_73);
lean_ctor_set_uint8(x_74, sizeof(void*)*5, x_58);
lean_ctor_set_uint8(x_74, sizeof(void*)*5 + 1, x_70);
lean_ctor_set_uint8(x_74, sizeof(void*)*5 + 2, x_58);
x_75 = l_Lean_MessageLog_add(x_74, x_66);
x_32 = x_65;
x_33 = x_58;
x_34 = x_75;
x_35 = lean_box(0);
goto block_55;
}
else
{
lean_dec(x_64);
lean_dec_ref(x_20);
lean_dec_ref(x_19);
lean_dec(x_3);
x_32 = x_65;
x_33 = x_58;
x_34 = x_66;
x_35 = lean_box(0);
goto block_55;
}
}
}
else
{
lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; lean_object* x_106; uint8_t x_107; lean_object* x_108; lean_object* x_109; lean_object* x_129; 
x_78 = lean_ctor_get(x_2, 0);
x_79 = lean_ctor_get(x_2, 2);
x_80 = lean_ctor_get(x_2, 3);
x_81 = lean_ctor_get(x_2, 4);
x_82 = lean_ctor_get(x_2, 5);
x_83 = lean_ctor_get(x_2, 6);
x_84 = lean_ctor_get(x_2, 7);
x_85 = lean_ctor_get(x_2, 8);
lean_inc(x_85);
lean_inc(x_84);
lean_inc(x_83);
lean_inc(x_82);
lean_inc(x_81);
lean_inc(x_80);
lean_inc(x_79);
lean_inc(x_78);
lean_dec(x_2);
x_86 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__0;
x_87 = lean_unsigned_to_nat(0u);
x_88 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__17;
x_89 = l_Lean_Language_DynamicSnapshot_ofTyped___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__14___lam__0___closed__0;
lean_inc(x_79);
x_90 = lean_alloc_ctor(0, 11, 0);
lean_ctor_set(x_90, 0, x_78);
lean_ctor_set(x_90, 1, x_86);
lean_ctor_set(x_90, 2, x_79);
lean_ctor_set(x_90, 3, x_80);
lean_ctor_set(x_90, 4, x_81);
lean_ctor_set(x_90, 5, x_82);
lean_ctor_set(x_90, 6, x_83);
lean_ctor_set(x_90, 7, x_84);
lean_ctor_set(x_90, 8, x_85);
lean_ctor_set(x_90, 9, x_88);
lean_ctor_set(x_90, 10, x_89);
x_91 = lean_st_mk_ref(x_90);
x_92 = lean_ctor_get(x_6, 0);
x_93 = lean_ctor_get(x_92, 1);
lean_inc_ref(x_93);
x_94 = lean_ctor_get(x_92, 2);
lean_inc_ref(x_94);
x_95 = l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__0;
x_96 = l_List_head_x21___redArg(x_95, x_79);
lean_dec(x_79);
x_97 = lean_ctor_get(x_96, 1);
lean_inc(x_97);
lean_dec(x_96);
x_98 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___lam__0___boxed), 4, 1);
lean_closure_set(x_98, 0, x_1);
x_99 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__1;
x_100 = lean_box(0);
x_101 = lean_box(0);
x_102 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__2;
x_103 = lean_box(0);
x_104 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__3;
x_105 = l_Lean_Option_get___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__1(x_97, x_104);
if (x_105 == 0)
{
lean_object* x_150; 
lean_inc_ref(x_4);
x_150 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_150, 0, x_4);
x_129 = x_150;
goto block_149;
}
else
{
x_129 = x_101;
goto block_149;
}
block_128:
{
lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; 
x_110 = lean_ctor_get(x_4, 1);
lean_inc(x_110);
lean_dec_ref(x_4);
x_111 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__7;
x_112 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__8;
x_113 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_113, 0, x_111);
lean_ctor_set(x_113, 1, x_112);
lean_ctor_set(x_113, 2, x_101);
lean_ctor_set(x_113, 3, x_88);
lean_ctor_set_uint8(x_113, sizeof(void*)*4, x_107);
x_114 = l_Lean_Language_DynamicSnapshot_ofTyped___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__14(x_99, x_113);
x_115 = lean_io_promise_resolve(x_114, x_110);
lean_dec(x_110);
x_116 = lean_ctor_get(x_106, 0);
lean_inc_ref(x_116);
x_117 = lean_ctor_get(x_106, 2);
lean_inc(x_117);
x_118 = lean_ctor_get(x_106, 3);
lean_inc(x_118);
x_119 = lean_ctor_get(x_106, 4);
lean_inc(x_119);
x_120 = lean_ctor_get(x_106, 5);
lean_inc(x_120);
x_121 = lean_ctor_get(x_106, 6);
lean_inc_ref(x_121);
x_122 = lean_ctor_get(x_106, 7);
lean_inc_ref(x_122);
x_123 = lean_ctor_get(x_106, 8);
lean_inc_ref(x_123);
x_124 = lean_ctor_get(x_106, 9);
lean_inc_ref(x_124);
x_125 = lean_ctor_get(x_106, 10);
lean_inc_ref(x_125);
if (lean_is_exclusive(x_106)) {
 lean_ctor_release(x_106, 0);
 lean_ctor_release(x_106, 1);
 lean_ctor_release(x_106, 2);
 lean_ctor_release(x_106, 3);
 lean_ctor_release(x_106, 4);
 lean_ctor_release(x_106, 5);
 lean_ctor_release(x_106, 6);
 lean_ctor_release(x_106, 7);
 lean_ctor_release(x_106, 8);
 lean_ctor_release(x_106, 9);
 lean_ctor_release(x_106, 10);
 x_126 = x_106;
} else {
 lean_dec_ref(x_106);
 x_126 = lean_box(0);
}
if (lean_is_scalar(x_126)) {
 x_127 = lean_alloc_ctor(0, 11, 0);
} else {
 x_127 = x_126;
}
lean_ctor_set(x_127, 0, x_116);
lean_ctor_set(x_127, 1, x_108);
lean_ctor_set(x_127, 2, x_117);
lean_ctor_set(x_127, 3, x_118);
lean_ctor_set(x_127, 4, x_119);
lean_ctor_set(x_127, 5, x_120);
lean_ctor_set(x_127, 6, x_121);
lean_ctor_set(x_127, 7, x_122);
lean_ctor_set(x_127, 8, x_123);
lean_ctor_set(x_127, 9, x_124);
lean_ctor_set(x_127, 10, x_125);
return x_127;
}
block_149:
{
lean_object* x_130; uint8_t x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; 
x_130 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_130, 0, x_5);
x_131 = 0;
lean_inc(x_3);
lean_inc_ref(x_94);
lean_inc_ref(x_93);
x_132 = lean_alloc_ctor(0, 10, 1);
lean_ctor_set(x_132, 0, x_93);
lean_ctor_set(x_132, 1, x_94);
lean_ctor_set(x_132, 2, x_87);
lean_ctor_set(x_132, 3, x_3);
lean_ctor_set(x_132, 4, x_100);
lean_ctor_set(x_132, 5, x_101);
lean_ctor_set(x_132, 6, x_102);
lean_ctor_set(x_132, 7, x_103);
lean_ctor_set(x_132, 8, x_129);
lean_ctor_set(x_132, 9, x_130);
lean_ctor_set_uint8(x_132, sizeof(void*)*10, x_131);
lean_inc(x_91);
x_133 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___lam__1___boxed), 5, 3);
lean_closure_set(x_133, 0, x_98);
lean_closure_set(x_133, 1, x_132);
lean_closure_set(x_133, 2, x_91);
x_134 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__9;
x_135 = l_Lean_Option_get___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__1(x_97, x_134);
lean_dec(x_97);
x_136 = l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg(x_133, x_135, x_6);
x_137 = lean_ctor_get(x_136, 0);
lean_inc(x_137);
lean_dec_ref(x_136);
x_138 = lean_st_ref_get(x_91);
lean_dec(x_91);
x_139 = lean_ctor_get(x_138, 1);
lean_inc_ref(x_139);
x_140 = lean_string_utf8_byte_size(x_137);
x_141 = lean_nat_dec_eq(x_140, x_87);
lean_dec(x_140);
if (x_141 == 0)
{
lean_object* x_142; uint8_t x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; 
x_142 = l_Lean_FileMap_toPosition(x_94, x_3);
lean_dec(x_3);
x_143 = 0;
x_144 = l_panic___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__11___closed__0;
x_145 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_145, 0, x_137);
x_146 = l_Lean_MessageData_ofFormat(x_145);
x_147 = lean_alloc_ctor(0, 5, 3);
lean_ctor_set(x_147, 0, x_93);
lean_ctor_set(x_147, 1, x_142);
lean_ctor_set(x_147, 2, x_101);
lean_ctor_set(x_147, 3, x_144);
lean_ctor_set(x_147, 4, x_146);
lean_ctor_set_uint8(x_147, sizeof(void*)*5, x_131);
lean_ctor_set_uint8(x_147, sizeof(void*)*5 + 1, x_143);
lean_ctor_set_uint8(x_147, sizeof(void*)*5 + 2, x_131);
x_148 = l_Lean_MessageLog_add(x_147, x_139);
x_106 = x_138;
x_107 = x_131;
x_108 = x_148;
x_109 = lean_box(0);
goto block_128;
}
else
{
lean_dec(x_137);
lean_dec_ref(x_94);
lean_dec_ref(x_93);
lean_dec(x_3);
x_106 = x_138;
x_107 = x_131;
x_108 = x_139;
x_109 = lean_box(0);
goto block_128;
}
}
}
}
}
LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; lean_object* x_7; 
x_6 = lean_unbox(x_3);
x_7 = l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9(x_1, x_2, x_6, x_4);
return x_7;
}
}
LEAN_EXPORT lean_object* l_IO_withStdin___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_IO_withStdin___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__10(x_1, x_2, x_3, x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0(x_1, x_2);
lean_dec(x_2);
lean_dec_ref(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec_ref(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_logError___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_logError___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__5(x_1, x_2, x_3);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2(x_1, x_2, x_3, x_4);
lean_dec(x_4);
lean_dec(x_1);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_log___at___00Lean_logError___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__5_spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
uint8_t x_7; uint8_t x_8; lean_object* x_9; 
x_7 = lean_unbox(x_2);
x_8 = lean_unbox(x_3);
x_9 = l_Lean_log___at___00Lean_logError___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__5_spec__5(x_1, x_7, x_8, x_4, x_5);
lean_dec(x_5);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2(x_1, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_get___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__1___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lean_Option_get___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__1(x_1, x_2);
lean_dec_ref(x_2);
lean_dec(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_IO_withStderr___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__12___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_IO_withStderr___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__12___redArg(x_1, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_IO_withStdin___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__10___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_IO_withStdin___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__10___redArg(x_1, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_IO_withStdout___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__9___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_IO_withStdout___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__9___redArg(x_1, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg(x_1);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2(x_1, x_2, x_3);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg(x_1, x_2);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; 
x_5 = lean_unbox(x_2);
x_6 = l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg(x_1, x_5, x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab(x_1, x_2, x_3, x_4, x_5, x_6);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
uint8_t x_8; uint8_t x_9; lean_object* x_10; 
x_8 = lean_unbox(x_3);
x_9 = lean_unbox(x_4);
x_10 = l_Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2(x_1, x_2, x_8, x_9, x_5, x_6);
lean_dec(x_6);
lean_dec(x_1);
return x_10;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__8___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Language_instToSnapshotTreeSnapshotTree___lam__0___boxed), 1, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__8___redArg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) {
_start:
{
uint8_t x_6; 
x_6 = lean_usize_dec_eq(x_2, x_3);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; size_t x_10; size_t x_11; 
x_7 = lean_array_uget(x_1, x_2);
x_8 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__8___redArg___closed__0;
x_9 = l_Lean_Language_SnapshotTask_cancelRec___redArg(x_8, x_7);
x_10 = 1;
x_11 = lean_usize_add(x_2, x_10);
x_2 = x_11;
x_4 = x_9;
goto _start;
}
else
{
return x_4;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__8(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_7; 
x_7 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__8___redArg(x_1, x_2, x_3, x_4);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_get___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_ctor_get(x_2, 1);
x_5 = l_Lean_KVMap_find(x_1, x_3);
if (lean_obj_tag(x_5) == 0)
{
lean_inc(x_4);
return x_4;
}
else
{
lean_object* x_6; 
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
lean_dec_ref(x_5);
if (lean_obj_tag(x_6) == 3)
{
lean_object* x_7; 
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
lean_dec_ref(x_6);
return x_7;
}
else
{
lean_dec(x_6);
lean_inc(x_4);
return x_4;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__5_spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, size_t x_7, size_t x_8, lean_object* x_9) {
_start:
{
uint8_t x_11; 
x_11 = lean_usize_dec_lt(x_8, x_7);
if (x_11 == 0)
{
lean_dec(x_5);
lean_dec_ref(x_3);
lean_dec_ref(x_1);
return x_9;
}
else
{
uint8_t x_12; 
x_12 = !lean_is_exclusive(x_9);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; 
x_13 = lean_ctor_get(x_9, 1);
x_14 = lean_ctor_get(x_9, 0);
lean_dec(x_14);
x_15 = lean_array_uget(x_6, x_8);
x_16 = lean_ctor_get(x_15, 1);
lean_inc_ref(x_16);
lean_dec(x_15);
lean_inc_ref(x_1);
x_17 = l_Lean_FileMap_toPosition(x_1, x_2);
x_18 = lean_box(0);
x_19 = 0;
x_20 = l_panic___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__11___closed__0;
lean_inc_ref(x_3);
x_21 = lean_alloc_ctor(0, 5, 3);
lean_ctor_set(x_21, 0, x_3);
lean_ctor_set(x_21, 1, x_17);
lean_ctor_set(x_21, 2, x_18);
lean_ctor_set(x_21, 3, x_20);
lean_ctor_set(x_21, 4, x_16);
lean_ctor_set_uint8(x_21, sizeof(void*)*5, x_4);
lean_ctor_set_uint8(x_21, sizeof(void*)*5 + 1, x_19);
lean_ctor_set_uint8(x_21, sizeof(void*)*5 + 2, x_4);
x_22 = l_Lean_MessageLog_add(x_21, x_13);
lean_inc(x_5);
lean_ctor_set(x_9, 1, x_22);
lean_ctor_set(x_9, 0, x_5);
x_23 = 1;
x_24 = lean_usize_add(x_8, x_23);
x_8 = x_24;
goto _start;
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; size_t x_36; size_t x_37; 
x_26 = lean_ctor_get(x_9, 1);
lean_inc(x_26);
lean_dec(x_9);
x_27 = lean_array_uget(x_6, x_8);
x_28 = lean_ctor_get(x_27, 1);
lean_inc_ref(x_28);
lean_dec(x_27);
lean_inc_ref(x_1);
x_29 = l_Lean_FileMap_toPosition(x_1, x_2);
x_30 = lean_box(0);
x_31 = 0;
x_32 = l_panic___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__11___closed__0;
lean_inc_ref(x_3);
x_33 = lean_alloc_ctor(0, 5, 3);
lean_ctor_set(x_33, 0, x_3);
lean_ctor_set(x_33, 1, x_29);
lean_ctor_set(x_33, 2, x_30);
lean_ctor_set(x_33, 3, x_32);
lean_ctor_set(x_33, 4, x_28);
lean_ctor_set_uint8(x_33, sizeof(void*)*5, x_4);
lean_ctor_set_uint8(x_33, sizeof(void*)*5 + 1, x_31);
lean_ctor_set_uint8(x_33, sizeof(void*)*5 + 2, x_4);
x_34 = l_Lean_MessageLog_add(x_33, x_26);
lean_inc(x_5);
x_35 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_35, 0, x_5);
lean_ctor_set(x_35, 1, x_34);
x_36 = 1;
x_37 = lean_usize_add(x_8, x_36);
x_8 = x_37;
x_9 = x_35;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, size_t x_7, size_t x_8, lean_object* x_9) {
_start:
{
uint8_t x_11; 
x_11 = lean_usize_dec_lt(x_8, x_7);
if (x_11 == 0)
{
lean_dec(x_5);
lean_dec_ref(x_3);
lean_dec_ref(x_1);
return x_9;
}
else
{
uint8_t x_12; 
x_12 = !lean_is_exclusive(x_9);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; lean_object* x_25; 
x_13 = lean_ctor_get(x_9, 1);
x_14 = lean_ctor_get(x_9, 0);
lean_dec(x_14);
x_15 = lean_array_uget(x_6, x_8);
x_16 = lean_ctor_get(x_15, 1);
lean_inc_ref(x_16);
lean_dec(x_15);
lean_inc_ref(x_1);
x_17 = l_Lean_FileMap_toPosition(x_1, x_2);
x_18 = lean_box(0);
x_19 = 0;
x_20 = l_panic___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__11___closed__0;
lean_inc_ref(x_3);
x_21 = lean_alloc_ctor(0, 5, 3);
lean_ctor_set(x_21, 0, x_3);
lean_ctor_set(x_21, 1, x_17);
lean_ctor_set(x_21, 2, x_18);
lean_ctor_set(x_21, 3, x_20);
lean_ctor_set(x_21, 4, x_16);
lean_ctor_set_uint8(x_21, sizeof(void*)*5, x_4);
lean_ctor_set_uint8(x_21, sizeof(void*)*5 + 1, x_19);
lean_ctor_set_uint8(x_21, sizeof(void*)*5 + 2, x_4);
x_22 = l_Lean_MessageLog_add(x_21, x_13);
lean_inc(x_5);
lean_ctor_set(x_9, 1, x_22);
lean_ctor_set(x_9, 0, x_5);
x_23 = 1;
x_24 = lean_usize_add(x_8, x_23);
x_25 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__5_spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_24, x_9);
return x_25;
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; size_t x_36; size_t x_37; lean_object* x_38; 
x_26 = lean_ctor_get(x_9, 1);
lean_inc(x_26);
lean_dec(x_9);
x_27 = lean_array_uget(x_6, x_8);
x_28 = lean_ctor_get(x_27, 1);
lean_inc_ref(x_28);
lean_dec(x_27);
lean_inc_ref(x_1);
x_29 = l_Lean_FileMap_toPosition(x_1, x_2);
x_30 = lean_box(0);
x_31 = 0;
x_32 = l_panic___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__11___closed__0;
lean_inc_ref(x_3);
x_33 = lean_alloc_ctor(0, 5, 3);
lean_ctor_set(x_33, 0, x_3);
lean_ctor_set(x_33, 1, x_29);
lean_ctor_set(x_33, 2, x_30);
lean_ctor_set(x_33, 3, x_32);
lean_ctor_set(x_33, 4, x_28);
lean_ctor_set_uint8(x_33, sizeof(void*)*5, x_4);
lean_ctor_set_uint8(x_33, sizeof(void*)*5 + 1, x_31);
lean_ctor_set_uint8(x_33, sizeof(void*)*5 + 2, x_4);
x_34 = l_Lean_MessageLog_add(x_33, x_26);
lean_inc(x_5);
x_35 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_35, 0, x_5);
lean_ctor_set(x_35, 1, x_34);
x_36 = 1;
x_37 = lean_usize_add(x_8, x_36);
x_38 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__5_spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_37, x_35);
return x_38;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1_spec__2_spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, size_t x_7, size_t x_8, lean_object* x_9) {
_start:
{
uint8_t x_11; 
x_11 = lean_usize_dec_lt(x_8, x_7);
if (x_11 == 0)
{
lean_dec(x_5);
lean_dec_ref(x_3);
lean_dec_ref(x_1);
return x_9;
}
else
{
uint8_t x_12; 
x_12 = !lean_is_exclusive(x_9);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; 
x_13 = lean_ctor_get(x_9, 1);
x_14 = lean_ctor_get(x_9, 0);
lean_dec(x_14);
x_15 = lean_array_uget(x_6, x_8);
x_16 = lean_ctor_get(x_15, 1);
lean_inc_ref(x_16);
lean_dec(x_15);
lean_inc_ref(x_1);
x_17 = l_Lean_FileMap_toPosition(x_1, x_2);
x_18 = lean_box(0);
x_19 = 0;
x_20 = l_panic___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__11___closed__0;
lean_inc_ref(x_3);
x_21 = lean_alloc_ctor(0, 5, 3);
lean_ctor_set(x_21, 0, x_3);
lean_ctor_set(x_21, 1, x_17);
lean_ctor_set(x_21, 2, x_18);
lean_ctor_set(x_21, 3, x_20);
lean_ctor_set(x_21, 4, x_16);
lean_ctor_set_uint8(x_21, sizeof(void*)*5, x_4);
lean_ctor_set_uint8(x_21, sizeof(void*)*5 + 1, x_19);
lean_ctor_set_uint8(x_21, sizeof(void*)*5 + 2, x_4);
x_22 = l_Lean_MessageLog_add(x_21, x_13);
lean_inc(x_5);
lean_ctor_set(x_9, 1, x_22);
lean_ctor_set(x_9, 0, x_5);
x_23 = 1;
x_24 = lean_usize_add(x_8, x_23);
x_8 = x_24;
goto _start;
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; size_t x_36; size_t x_37; 
x_26 = lean_ctor_get(x_9, 1);
lean_inc(x_26);
lean_dec(x_9);
x_27 = lean_array_uget(x_6, x_8);
x_28 = lean_ctor_get(x_27, 1);
lean_inc_ref(x_28);
lean_dec(x_27);
lean_inc_ref(x_1);
x_29 = l_Lean_FileMap_toPosition(x_1, x_2);
x_30 = lean_box(0);
x_31 = 0;
x_32 = l_panic___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__11___closed__0;
lean_inc_ref(x_3);
x_33 = lean_alloc_ctor(0, 5, 3);
lean_ctor_set(x_33, 0, x_3);
lean_ctor_set(x_33, 1, x_29);
lean_ctor_set(x_33, 2, x_30);
lean_ctor_set(x_33, 3, x_32);
lean_ctor_set(x_33, 4, x_28);
lean_ctor_set_uint8(x_33, sizeof(void*)*5, x_4);
lean_ctor_set_uint8(x_33, sizeof(void*)*5 + 1, x_31);
lean_ctor_set_uint8(x_33, sizeof(void*)*5 + 2, x_4);
x_34 = l_Lean_MessageLog_add(x_33, x_26);
lean_inc(x_5);
x_35 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_35, 0, x_5);
lean_ctor_set(x_35, 1, x_34);
x_36 = 1;
x_37 = lean_usize_add(x_8, x_36);
x_8 = x_37;
x_9 = x_35;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1_spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, size_t x_7, size_t x_8, lean_object* x_9) {
_start:
{
uint8_t x_11; 
x_11 = lean_usize_dec_lt(x_8, x_7);
if (x_11 == 0)
{
lean_dec(x_5);
lean_dec_ref(x_3);
lean_dec_ref(x_1);
return x_9;
}
else
{
uint8_t x_12; 
x_12 = !lean_is_exclusive(x_9);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; lean_object* x_25; 
x_13 = lean_ctor_get(x_9, 1);
x_14 = lean_ctor_get(x_9, 0);
lean_dec(x_14);
x_15 = lean_array_uget(x_6, x_8);
x_16 = lean_ctor_get(x_15, 1);
lean_inc_ref(x_16);
lean_dec(x_15);
lean_inc_ref(x_1);
x_17 = l_Lean_FileMap_toPosition(x_1, x_2);
x_18 = lean_box(0);
x_19 = 0;
x_20 = l_panic___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__11___closed__0;
lean_inc_ref(x_3);
x_21 = lean_alloc_ctor(0, 5, 3);
lean_ctor_set(x_21, 0, x_3);
lean_ctor_set(x_21, 1, x_17);
lean_ctor_set(x_21, 2, x_18);
lean_ctor_set(x_21, 3, x_20);
lean_ctor_set(x_21, 4, x_16);
lean_ctor_set_uint8(x_21, sizeof(void*)*5, x_4);
lean_ctor_set_uint8(x_21, sizeof(void*)*5 + 1, x_19);
lean_ctor_set_uint8(x_21, sizeof(void*)*5 + 2, x_4);
x_22 = l_Lean_MessageLog_add(x_21, x_13);
lean_inc(x_5);
lean_ctor_set(x_9, 1, x_22);
lean_ctor_set(x_9, 0, x_5);
x_23 = 1;
x_24 = lean_usize_add(x_8, x_23);
x_25 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1_spec__2_spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_24, x_9);
return x_25;
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; size_t x_36; size_t x_37; lean_object* x_38; 
x_26 = lean_ctor_get(x_9, 1);
lean_inc(x_26);
lean_dec(x_9);
x_27 = lean_array_uget(x_6, x_8);
x_28 = lean_ctor_get(x_27, 1);
lean_inc_ref(x_28);
lean_dec(x_27);
lean_inc_ref(x_1);
x_29 = l_Lean_FileMap_toPosition(x_1, x_2);
x_30 = lean_box(0);
x_31 = 0;
x_32 = l_panic___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__11___closed__0;
lean_inc_ref(x_3);
x_33 = lean_alloc_ctor(0, 5, 3);
lean_ctor_set(x_33, 0, x_3);
lean_ctor_set(x_33, 1, x_29);
lean_ctor_set(x_33, 2, x_30);
lean_ctor_set(x_33, 3, x_32);
lean_ctor_set(x_33, 4, x_28);
lean_ctor_set_uint8(x_33, sizeof(void*)*5, x_4);
lean_ctor_set_uint8(x_33, sizeof(void*)*5 + 1, x_31);
lean_ctor_set_uint8(x_33, sizeof(void*)*5 + 2, x_4);
x_34 = l_Lean_MessageLog_add(x_33, x_26);
lean_inc(x_5);
x_35 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_35, 0, x_5);
lean_ctor_set(x_35, 1, x_34);
x_36 = 1;
x_37 = lean_usize_add(x_8, x_36);
x_38 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1_spec__2_spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_37, x_35);
return x_38;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
if (lean_obj_tag(x_6) == 0)
{
uint8_t x_9; 
x_9 = !lean_is_exclusive(x_6);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; size_t x_13; size_t x_14; lean_object* x_15; lean_object* x_16; 
x_10 = lean_ctor_get(x_6, 0);
x_11 = lean_box(0);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set(x_12, 1, x_7);
x_13 = lean_array_size(x_10);
x_14 = 0;
x_15 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1_spec__1(x_1, x_2, x_3, x_4, x_5, x_11, x_10, x_13, x_14, x_12);
lean_dec_ref(x_10);
x_16 = lean_ctor_get(x_15, 0);
lean_inc(x_16);
if (lean_obj_tag(x_16) == 0)
{
lean_object* x_17; 
x_17 = lean_ctor_get(x_15, 1);
lean_inc(x_17);
lean_dec_ref(x_15);
lean_ctor_set_tag(x_6, 1);
lean_ctor_set(x_6, 0, x_17);
return x_6;
}
else
{
lean_object* x_18; 
lean_dec_ref(x_15);
lean_free_object(x_6);
x_18 = lean_ctor_get(x_16, 0);
lean_inc(x_18);
lean_dec_ref(x_16);
return x_18;
}
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; size_t x_22; size_t x_23; lean_object* x_24; lean_object* x_25; 
x_19 = lean_ctor_get(x_6, 0);
lean_inc(x_19);
lean_dec(x_6);
x_20 = lean_box(0);
x_21 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_21, 0, x_20);
lean_ctor_set(x_21, 1, x_7);
x_22 = lean_array_size(x_19);
x_23 = 0;
x_24 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1_spec__1(x_1, x_2, x_3, x_4, x_5, x_20, x_19, x_22, x_23, x_21);
lean_dec_ref(x_19);
x_25 = lean_ctor_get(x_24, 0);
lean_inc(x_25);
if (lean_obj_tag(x_25) == 0)
{
lean_object* x_26; lean_object* x_27; 
x_26 = lean_ctor_get(x_24, 1);
lean_inc(x_26);
lean_dec_ref(x_24);
x_27 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_27, 0, x_26);
return x_27;
}
else
{
lean_object* x_28; 
lean_dec_ref(x_24);
x_28 = lean_ctor_get(x_25, 0);
lean_inc(x_28);
lean_dec_ref(x_25);
return x_28;
}
}
}
else
{
uint8_t x_29; 
x_29 = !lean_is_exclusive(x_6);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; size_t x_33; size_t x_34; lean_object* x_35; lean_object* x_36; 
x_30 = lean_ctor_get(x_6, 0);
x_31 = lean_box(0);
x_32 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_32, 0, x_31);
lean_ctor_set(x_32, 1, x_7);
x_33 = lean_array_size(x_30);
x_34 = 0;
x_35 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1_spec__2(x_1, x_2, x_3, x_4, x_31, x_30, x_33, x_34, x_32);
lean_dec_ref(x_30);
x_36 = lean_ctor_get(x_35, 0);
lean_inc(x_36);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_37; 
x_37 = lean_ctor_get(x_35, 1);
lean_inc(x_37);
lean_dec_ref(x_35);
lean_ctor_set(x_6, 0, x_37);
return x_6;
}
else
{
lean_object* x_38; 
lean_dec_ref(x_35);
lean_free_object(x_6);
x_38 = lean_ctor_get(x_36, 0);
lean_inc(x_38);
lean_dec_ref(x_36);
return x_38;
}
}
else
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; size_t x_42; size_t x_43; lean_object* x_44; lean_object* x_45; 
x_39 = lean_ctor_get(x_6, 0);
lean_inc(x_39);
lean_dec(x_6);
x_40 = lean_box(0);
x_41 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_41, 0, x_40);
lean_ctor_set(x_41, 1, x_7);
x_42 = lean_array_size(x_39);
x_43 = 0;
x_44 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1_spec__2(x_1, x_2, x_3, x_4, x_40, x_39, x_42, x_43, x_41);
lean_dec_ref(x_39);
x_45 = lean_ctor_get(x_44, 0);
lean_inc(x_45);
if (lean_obj_tag(x_45) == 0)
{
lean_object* x_46; lean_object* x_47; 
x_46 = lean_ctor_get(x_44, 1);
lean_inc(x_46);
lean_dec_ref(x_44);
x_47 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_47, 0, x_46);
return x_47;
}
else
{
lean_object* x_48; 
lean_dec_ref(x_44);
x_48 = lean_ctor_get(x_45, 0);
lean_inc(x_48);
lean_dec_ref(x_45);
return x_48;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, size_t x_8, size_t x_9, lean_object* x_10) {
_start:
{
uint8_t x_12; 
x_12 = lean_usize_dec_lt(x_9, x_8);
if (x_12 == 0)
{
lean_dec(x_6);
lean_dec_ref(x_3);
lean_dec_ref(x_1);
return x_10;
}
else
{
uint8_t x_13; 
x_13 = !lean_is_exclusive(x_10);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_14 = lean_ctor_get(x_10, 1);
x_15 = lean_ctor_get(x_10, 0);
lean_dec(x_15);
x_16 = lean_array_uget(x_7, x_9);
lean_inc(x_14);
lean_inc_ref(x_3);
lean_inc_ref(x_1);
x_17 = l_Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1(x_1, x_2, x_3, x_4, x_5, x_16, x_14);
if (lean_obj_tag(x_17) == 0)
{
lean_object* x_18; 
lean_dec(x_6);
lean_dec_ref(x_3);
lean_dec_ref(x_1);
x_18 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_18, 0, x_17);
lean_ctor_set(x_10, 0, x_18);
return x_10;
}
else
{
lean_object* x_19; size_t x_20; size_t x_21; 
lean_dec(x_14);
x_19 = lean_ctor_get(x_17, 0);
lean_inc(x_19);
lean_dec_ref(x_17);
lean_inc(x_6);
lean_ctor_set(x_10, 1, x_19);
lean_ctor_set(x_10, 0, x_6);
x_20 = 1;
x_21 = lean_usize_add(x_9, x_20);
x_9 = x_21;
goto _start;
}
}
else
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_23 = lean_ctor_get(x_10, 1);
lean_inc(x_23);
lean_dec(x_10);
x_24 = lean_array_uget(x_7, x_9);
lean_inc(x_23);
lean_inc_ref(x_3);
lean_inc_ref(x_1);
x_25 = l_Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1(x_1, x_2, x_3, x_4, x_5, x_24, x_23);
if (lean_obj_tag(x_25) == 0)
{
lean_object* x_26; lean_object* x_27; 
lean_dec(x_6);
lean_dec_ref(x_3);
lean_dec_ref(x_1);
x_26 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_26, 0, x_25);
x_27 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_27, 0, x_26);
lean_ctor_set(x_27, 1, x_23);
return x_27;
}
else
{
lean_object* x_28; lean_object* x_29; size_t x_30; size_t x_31; 
lean_dec(x_23);
x_28 = lean_ctor_get(x_25, 0);
lean_inc(x_28);
lean_dec_ref(x_25);
lean_inc(x_6);
x_29 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_29, 0, x_6);
lean_ctor_set(x_29, 1, x_28);
x_30 = 1;
x_31 = lean_usize_add(x_9, x_30);
x_9 = x_31;
x_10 = x_29;
goto _start;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_8 = lean_ctor_get(x_5, 0);
lean_inc_ref(x_8);
x_9 = lean_ctor_get(x_5, 1);
lean_inc_ref(x_9);
lean_dec_ref(x_5);
lean_inc_ref(x_6);
lean_inc_ref(x_3);
lean_inc_ref(x_1);
x_10 = l_Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1(x_1, x_2, x_3, x_4, x_6, x_8, x_6);
lean_dec_ref(x_6);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_11; 
lean_dec_ref(x_9);
lean_dec_ref(x_3);
lean_dec_ref(x_1);
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
lean_dec_ref(x_10);
return x_11;
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; size_t x_15; size_t x_16; lean_object* x_17; lean_object* x_18; 
x_12 = lean_ctor_get(x_10, 0);
lean_inc(x_12);
lean_dec_ref(x_10);
x_13 = lean_box(0);
x_14 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_14, 0, x_13);
lean_ctor_set(x_14, 1, x_12);
x_15 = lean_array_size(x_9);
x_16 = 0;
x_17 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__5(x_1, x_2, x_3, x_4, x_13, x_9, x_15, x_16, x_14);
lean_dec_ref(x_9);
x_18 = lean_ctor_get(x_17, 0);
lean_inc(x_18);
if (lean_obj_tag(x_18) == 0)
{
lean_object* x_19; 
x_19 = lean_ctor_get(x_17, 1);
lean_inc(x_19);
lean_dec_ref(x_17);
return x_19;
}
else
{
lean_object* x_20; 
lean_dec_ref(x_17);
x_20 = lean_ctor_get(x_18, 0);
lean_inc(x_20);
lean_dec_ref(x_18);
return x_20;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Language_DynamicSnapshot_ofTyped___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__14___lam__0___closed__0;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__1(lean_object* x_1) {
_start:
{
uint8_t x_2; 
x_2 = !lean_is_exclusive(x_1);
if (x_2 == 0)
{
lean_object* x_3; lean_object* x_4; 
x_3 = lean_ctor_get(x_1, 1);
lean_dec(x_3);
x_4 = l_Lean_Language_DynamicSnapshot_ofTyped___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__14___lam__0___closed__0;
lean_ctor_set(x_1, 1, x_4);
return x_1;
}
else
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_1, 0);
lean_inc(x_5);
lean_dec(x_1);
x_6 = l_Lean_Language_DynamicSnapshot_ofTyped___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__14___lam__0___closed__0;
x_7 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_7, 0, x_5);
lean_ctor_set(x_7, 1, x_6);
return x_7;
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__2(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_ctor_get(x_1, 1);
x_3 = lean_thunk_get_own(x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("parseCmd", 8, 8);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__5;
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__4;
x_3 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__4;
x_4 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__2;
x_5 = l_Lean_Name_mkStr5(x_4, x_3, x_4, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Language_instInhabitedDynamicSnapshot;
x_2 = l_Lean_Language_instInhabitedSnapshotTask_default___redArg(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Language_instInhabitedSnapshotTree_default;
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__1;
x_2 = l_Lean_Language_instInhabitedSnapshotTask_default___redArg(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
uint8_t x_9; lean_object* x_10; 
x_9 = lean_unbox(x_4);
x_10 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__6(x_1, x_2, x_3, x_9, x_5, x_6, x_7);
return x_10;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; 
x_9 = lean_ctor_get(x_1, 3);
lean_inc_ref(x_9);
lean_dec_ref(x_1);
x_10 = lean_box(x_4);
x_11 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__6___boxed), 8, 6);
lean_closure_set(x_11, 0, x_7);
lean_closure_set(x_11, 1, x_2);
lean_closure_set(x_11, 2, x_3);
lean_closure_set(x_11, 3, x_10);
lean_closure_set(x_11, 4, x_5);
lean_closure_set(x_11, 5, x_6);
x_12 = lean_unsigned_to_nat(0u);
x_13 = 1;
x_14 = l_BaseIO_chainTask___redArg(x_9, x_11, x_12, x_13);
return x_14;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
uint8_t x_9; lean_object* x_10; 
x_9 = lean_unbox(x_4);
x_10 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__3(x_1, x_2, x_3, x_9, x_5, x_6, x_7);
return x_10;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__2___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__2(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Elab_instInhabitedInfoTree_default;
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_inheritedTraceOptions;
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("snapshotTree", 12, 12);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Elab", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__0;
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__1;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(3u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(1u);
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__2;
x_3 = lean_nat_add(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("_uniq", 5, 5);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__1;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(1u);
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__2;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0));
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__4;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__5;
x_2 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_2, 0, x_1);
lean_ctor_set(x_2, 1, x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_NameSet_empty;
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_diagnostics;
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_maxRecDepth;
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, uint8_t x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, uint8_t x_18, lean_object* x_19) {
_start:
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; uint8_t x_67; uint8_t x_86; 
x_21 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__2;
x_22 = lean_unsigned_to_nat(1u);
x_23 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__0;
x_24 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__3;
x_25 = lean_box(0);
lean_inc(x_1);
x_26 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_26, 0, x_1);
lean_ctor_set(x_26, 1, x_22);
lean_ctor_set(x_26, 2, x_25);
x_27 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__5;
x_28 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__6;
x_29 = lean_mk_empty_array_with_capacity(x_2);
lean_inc_ref(x_29);
x_30 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_30, 0, x_29);
lean_inc_n(x_3, 2);
x_31 = lean_alloc_ctor(0, 4, sizeof(size_t)*1);
lean_ctor_set(x_31, 0, x_30);
lean_ctor_set(x_31, 1, x_29);
lean_ctor_set(x_31, 2, x_3);
lean_ctor_set(x_31, 3, x_3);
lean_ctor_set_usize(x_31, 4, x_4);
x_32 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__7;
lean_inc_ref_n(x_31, 2);
x_33 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_33, 0, x_31);
lean_ctor_set(x_33, 1, x_31);
lean_ctor_set(x_33, 2, x_32);
x_34 = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(x_34, 0, x_27);
lean_ctor_set(x_34, 1, x_27);
lean_ctor_set(x_34, 2, x_31);
lean_ctor_set_uint8(x_34, sizeof(void*)*3, x_5);
x_35 = lean_mk_empty_array_with_capacity(x_3);
lean_inc_ref(x_35);
lean_inc_ref(x_7);
x_36 = lean_alloc_ctor(0, 9, 0);
lean_ctor_set(x_36, 0, x_6);
lean_ctor_set(x_36, 1, x_23);
lean_ctor_set(x_36, 2, x_24);
lean_ctor_set(x_36, 3, x_26);
lean_ctor_set(x_36, 4, x_7);
lean_ctor_set(x_36, 5, x_28);
lean_ctor_set(x_36, 6, x_33);
lean_ctor_set(x_36, 7, x_34);
lean_ctor_set(x_36, 8, x_35);
x_37 = lean_st_mk_ref(x_36);
x_38 = lean_st_ref_get(x_8);
x_39 = lean_st_ref_get(x_37);
x_40 = lean_ctor_get(x_9, 0);
lean_inc_ref(x_40);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 x_41 = x_9;
} else {
 lean_dec_ref(x_9);
 x_41 = lean_box(0);
}
x_42 = lean_ctor_get(x_40, 1);
lean_inc_ref(x_42);
x_43 = lean_ctor_get(x_40, 2);
lean_inc_ref(x_43);
lean_dec_ref(x_40);
x_44 = lean_ctor_get(x_39, 0);
lean_inc_ref(x_44);
lean_dec(x_39);
x_45 = lean_box(0);
x_46 = l_Lean_Core_getMaxHeartbeats(x_10);
x_47 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__8;
x_48 = l_Lean_Option_get___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__1(x_10, x_47);
x_86 = l_Lean_Kernel_isDiagnosticsEnabled(x_44);
lean_dec_ref(x_44);
if (x_86 == 0)
{
if (x_48 == 0)
{
x_67 = x_18;
goto block_85;
}
else
{
x_67 = x_86;
goto block_85;
}
}
else
{
x_67 = x_48;
goto block_85;
}
block_66:
{
lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; 
x_51 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__9;
x_52 = l_Lean_Option_get___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__0(x_10, x_51);
lean_inc(x_1);
lean_inc(x_3);
lean_inc_ref(x_43);
lean_inc_ref(x_42);
x_53 = lean_alloc_ctor(0, 14, 2);
lean_ctor_set(x_53, 0, x_42);
lean_ctor_set(x_53, 1, x_43);
lean_ctor_set(x_53, 2, x_10);
lean_ctor_set(x_53, 3, x_3);
lean_ctor_set(x_53, 4, x_52);
lean_ctor_set(x_53, 5, x_45);
lean_ctor_set(x_53, 6, x_1);
lean_ctor_set(x_53, 7, x_25);
lean_ctor_set(x_53, 8, x_3);
lean_ctor_set(x_53, 9, x_46);
lean_ctor_set(x_53, 10, x_1);
lean_ctor_set(x_53, 11, x_21);
lean_ctor_set(x_53, 12, x_11);
lean_ctor_set(x_53, 13, x_38);
lean_ctor_set_uint8(x_53, sizeof(void*)*14, x_48);
lean_ctor_set_uint8(x_53, sizeof(void*)*14 + 1, x_12);
x_54 = l_Lean_Language_SnapshotTree_trace(x_13, x_53, x_49);
if (lean_obj_tag(x_54) == 0)
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; 
lean_dec_ref(x_54);
lean_dec_ref(x_17);
x_55 = lean_st_ref_get(x_37);
lean_dec(x_37);
x_56 = lean_ctor_get(x_55, 4);
lean_inc_ref(x_56);
lean_dec(x_55);
x_57 = lean_ctor_get(x_56, 0);
lean_inc_ref(x_57);
lean_dec_ref(x_56);
x_58 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__0;
x_59 = l_Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1(x_43, x_14, x_42, x_12, x_57, x_58);
x_60 = l_Lean_Language_Snapshot_Diagnostics_ofMessageLog(x_59);
x_61 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_61, 0, x_15);
lean_ctor_set(x_61, 1, x_60);
lean_ctor_set(x_61, 2, x_16);
lean_ctor_set(x_61, 3, x_7);
lean_ctor_set_uint8(x_61, sizeof(void*)*4, x_12);
if (lean_is_scalar(x_41)) {
 x_62 = lean_alloc_ctor(0, 2, 0);
} else {
 x_62 = x_41;
}
lean_ctor_set(x_62, 0, x_61);
lean_ctor_set(x_62, 1, x_35);
x_63 = lean_task_pure(x_62);
return x_63;
}
else
{
lean_object* x_64; lean_object* x_65; 
lean_dec_ref(x_54);
lean_dec_ref(x_43);
lean_dec_ref(x_42);
lean_dec(x_37);
lean_dec(x_16);
lean_dec_ref(x_15);
lean_dec_ref(x_7);
if (lean_is_scalar(x_41)) {
 x_64 = lean_alloc_ctor(0, 2, 0);
} else {
 x_64 = x_41;
}
lean_ctor_set(x_64, 0, x_17);
lean_ctor_set(x_64, 1, x_35);
x_65 = lean_task_pure(x_64);
return x_65;
}
}
block_85:
{
if (x_67 == 0)
{
lean_object* x_68; uint8_t x_69; 
x_68 = lean_st_ref_take(x_37);
x_69 = !lean_is_exclusive(x_68);
if (x_69 == 0)
{
lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; 
x_70 = lean_ctor_get(x_68, 0);
x_71 = lean_ctor_get(x_68, 5);
lean_dec(x_71);
x_72 = l_Lean_Kernel_enableDiag(x_70, x_48);
lean_ctor_set(x_68, 5, x_28);
lean_ctor_set(x_68, 0, x_72);
x_73 = lean_st_ref_set(x_37, x_68);
lean_inc(x_37);
x_49 = x_37;
x_50 = lean_box(0);
goto block_66;
}
else
{
lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; 
x_74 = lean_ctor_get(x_68, 0);
x_75 = lean_ctor_get(x_68, 1);
x_76 = lean_ctor_get(x_68, 2);
x_77 = lean_ctor_get(x_68, 3);
x_78 = lean_ctor_get(x_68, 4);
x_79 = lean_ctor_get(x_68, 6);
x_80 = lean_ctor_get(x_68, 7);
x_81 = lean_ctor_get(x_68, 8);
lean_inc(x_81);
lean_inc(x_80);
lean_inc(x_79);
lean_inc(x_78);
lean_inc(x_77);
lean_inc(x_76);
lean_inc(x_75);
lean_inc(x_74);
lean_dec(x_68);
x_82 = l_Lean_Kernel_enableDiag(x_74, x_48);
x_83 = lean_alloc_ctor(0, 9, 0);
lean_ctor_set(x_83, 0, x_82);
lean_ctor_set(x_83, 1, x_75);
lean_ctor_set(x_83, 2, x_76);
lean_ctor_set(x_83, 3, x_77);
lean_ctor_set(x_83, 4, x_78);
lean_ctor_set(x_83, 5, x_28);
lean_ctor_set(x_83, 6, x_79);
lean_ctor_set(x_83, 7, x_80);
lean_ctor_set(x_83, 8, x_81);
x_84 = lean_st_ref_set(x_37, x_83);
lean_inc(x_37);
x_49 = x_37;
x_50 = lean_box(0);
goto block_66;
}
}
else
{
lean_inc(x_37);
x_49 = x_37;
x_50 = lean_box(0);
goto block_66;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___boxed(lean_object** _args) {
lean_object* x_1 = _args[0];
lean_object* x_2 = _args[1];
lean_object* x_3 = _args[2];
lean_object* x_4 = _args[3];
lean_object* x_5 = _args[4];
lean_object* x_6 = _args[5];
lean_object* x_7 = _args[6];
lean_object* x_8 = _args[7];
lean_object* x_9 = _args[8];
lean_object* x_10 = _args[9];
lean_object* x_11 = _args[10];
lean_object* x_12 = _args[11];
lean_object* x_13 = _args[12];
lean_object* x_14 = _args[13];
lean_object* x_15 = _args[14];
lean_object* x_16 = _args[15];
lean_object* x_17 = _args[16];
lean_object* x_18 = _args[17];
lean_object* x_19 = _args[18];
lean_object* x_20 = _args[19];
_start:
{
size_t x_21; uint8_t x_22; uint8_t x_23; uint8_t x_24; lean_object* x_25; 
x_21 = lean_unbox_usize(x_4);
lean_dec(x_4);
x_22 = lean_unbox(x_5);
x_23 = lean_unbox(x_12);
x_24 = lean_unbox(x_18);
x_25 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5(x_1, x_2, x_3, x_21, x_22, x_6, x_7, x_8, x_9, x_10, x_11, x_23, x_13, x_14, x_15, x_16, x_17, x_24, x_19);
lean_dec(x_14);
lean_dec(x_8);
lean_dec(x_2);
return x_25;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("info", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__2;
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__1;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2___lam__0___closed__0;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_MessageData_nil;
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(1u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, uint8_t x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
_start:
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_22; lean_object* x_71; lean_object* x_72; uint8_t x_73; 
x_71 = lean_ctor_get(x_12, 2);
lean_inc_ref(x_71);
lean_dec_ref(x_12);
x_72 = lean_ctor_get(x_71, 2);
x_73 = lean_nat_dec_lt(x_8, x_72);
if (x_73 == 0)
{
lean_object* x_74; 
lean_dec_ref(x_71);
x_74 = l_outOfBounds___redArg(x_11);
x_22 = x_74;
goto block_70;
}
else
{
lean_object* x_75; 
x_75 = l_Lean_PersistentArray_get_x21___redArg(x_11, x_71, x_8);
x_22 = x_75;
goto block_70;
}
block_21:
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_17 = l_Lean_Language_Snapshot_Diagnostics_ofMessageLog(x_15);
x_18 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_18, 0, x_14);
x_19 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_19, 0, x_1);
lean_ctor_set(x_19, 1, x_17);
lean_ctor_set(x_19, 2, x_18);
lean_ctor_set(x_19, 3, x_2);
lean_ctor_set_uint8(x_19, sizeof(void*)*4, x_3);
x_20 = lean_io_promise_resolve(x_19, x_4);
return x_20;
}
block_70:
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; 
x_23 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__0;
x_24 = lean_st_ref_get(x_23);
x_25 = lean_ctor_get(x_5, 2);
x_26 = l_List_head_x21___redArg(x_6, x_25);
x_27 = lean_ctor_get(x_26, 1);
lean_inc(x_27);
lean_dec(x_26);
x_28 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__0;
x_29 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__3;
x_30 = l_Lean_checkTraceOption(x_24, x_27, x_29);
lean_dec(x_27);
lean_dec(x_24);
if (x_30 == 0)
{
lean_dec(x_8);
lean_dec_ref(x_7);
x_14 = x_22;
x_15 = x_28;
x_16 = lean_box(0);
goto block_21;
}
else
{
lean_object* x_31; lean_object* x_32; 
x_31 = lean_box(0);
lean_inc_ref(x_22);
x_32 = l_Lean_Elab_InfoTree_format(x_22, x_31);
if (lean_obj_tag(x_32) == 0)
{
uint8_t x_33; 
x_33 = !lean_is_exclusive(x_7);
if (x_33 == 0)
{
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; double x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; 
x_34 = lean_ctor_get(x_7, 0);
x_35 = lean_ctor_get(x_7, 1);
lean_dec(x_35);
x_36 = lean_ctor_get(x_32, 0);
lean_inc(x_36);
lean_dec_ref(x_32);
x_37 = lean_ctor_get(x_34, 1);
lean_inc_ref(x_37);
x_38 = lean_ctor_get(x_34, 2);
lean_inc_ref(x_38);
lean_dec_ref(x_34);
x_39 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__4;
x_40 = lean_float_of_nat(x_8);
x_41 = l_panic___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__11___closed__0;
x_42 = lean_alloc_ctor(0, 2, 17);
lean_ctor_set(x_42, 0, x_29);
lean_ctor_set(x_42, 1, x_41);
lean_ctor_set_float(x_42, sizeof(void*)*2, x_40);
lean_ctor_set_float(x_42, sizeof(void*)*2 + 8, x_40);
lean_ctor_set_uint8(x_42, sizeof(void*)*2 + 16, x_9);
x_43 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__5;
x_44 = l_Lean_MessageData_ofFormat(x_36);
x_45 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__6;
x_46 = lean_array_push(x_45, x_44);
x_47 = lean_alloc_ctor(9, 3, 0);
lean_ctor_set(x_47, 0, x_42);
lean_ctor_set(x_47, 1, x_43);
lean_ctor_set(x_47, 2, x_46);
lean_ctor_set_tag(x_7, 8);
lean_ctor_set(x_7, 1, x_47);
lean_ctor_set(x_7, 0, x_39);
x_48 = l_Lean_FileMap_toPosition(x_38, x_10);
x_49 = 0;
x_50 = lean_alloc_ctor(0, 5, 3);
lean_ctor_set(x_50, 0, x_37);
lean_ctor_set(x_50, 1, x_48);
lean_ctor_set(x_50, 2, x_31);
lean_ctor_set(x_50, 3, x_41);
lean_ctor_set(x_50, 4, x_7);
lean_ctor_set_uint8(x_50, sizeof(void*)*5, x_3);
lean_ctor_set_uint8(x_50, sizeof(void*)*5 + 1, x_49);
lean_ctor_set_uint8(x_50, sizeof(void*)*5 + 2, x_3);
x_51 = l_Lean_MessageLog_add(x_50, x_28);
x_14 = x_22;
x_15 = x_51;
x_16 = lean_box(0);
goto block_21;
}
else
{
lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; double x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; lean_object* x_68; lean_object* x_69; 
x_52 = lean_ctor_get(x_7, 0);
lean_inc(x_52);
lean_dec(x_7);
x_53 = lean_ctor_get(x_32, 0);
lean_inc(x_53);
lean_dec_ref(x_32);
x_54 = lean_ctor_get(x_52, 1);
lean_inc_ref(x_54);
x_55 = lean_ctor_get(x_52, 2);
lean_inc_ref(x_55);
lean_dec_ref(x_52);
x_56 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__4;
x_57 = lean_float_of_nat(x_8);
x_58 = l_panic___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__11___closed__0;
x_59 = lean_alloc_ctor(0, 2, 17);
lean_ctor_set(x_59, 0, x_29);
lean_ctor_set(x_59, 1, x_58);
lean_ctor_set_float(x_59, sizeof(void*)*2, x_57);
lean_ctor_set_float(x_59, sizeof(void*)*2 + 8, x_57);
lean_ctor_set_uint8(x_59, sizeof(void*)*2 + 16, x_9);
x_60 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__5;
x_61 = l_Lean_MessageData_ofFormat(x_53);
x_62 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__6;
x_63 = lean_array_push(x_62, x_61);
x_64 = lean_alloc_ctor(9, 3, 0);
lean_ctor_set(x_64, 0, x_59);
lean_ctor_set(x_64, 1, x_60);
lean_ctor_set(x_64, 2, x_63);
x_65 = lean_alloc_ctor(8, 2, 0);
lean_ctor_set(x_65, 0, x_56);
lean_ctor_set(x_65, 1, x_64);
x_66 = l_Lean_FileMap_toPosition(x_55, x_10);
x_67 = 0;
x_68 = lean_alloc_ctor(0, 5, 3);
lean_ctor_set(x_68, 0, x_54);
lean_ctor_set(x_68, 1, x_66);
lean_ctor_set(x_68, 2, x_31);
lean_ctor_set(x_68, 3, x_58);
lean_ctor_set(x_68, 4, x_65);
lean_ctor_set_uint8(x_68, sizeof(void*)*5, x_3);
lean_ctor_set_uint8(x_68, sizeof(void*)*5 + 1, x_67);
lean_ctor_set_uint8(x_68, sizeof(void*)*5 + 2, x_3);
x_69 = l_Lean_MessageLog_add(x_68, x_28);
x_14 = x_22;
x_15 = x_69;
x_16 = lean_box(0);
goto block_21;
}
}
else
{
lean_dec_ref(x_32);
lean_dec(x_8);
lean_dec_ref(x_7);
x_14 = x_22;
x_15 = x_28;
x_16 = lean_box(0);
goto block_21;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
uint8_t x_14; uint8_t x_15; lean_object* x_16; 
x_14 = lean_unbox(x_3);
x_15 = lean_unbox(x_9);
x_16 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7(x_1, x_2, x_14, x_4, x_5, x_6, x_7, x_8, x_15, x_10, x_11, x_12);
lean_dec(x_10);
lean_dec_ref(x_5);
lean_dec(x_4);
return x_16;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0));
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__3;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20, lean_object* x_21, lean_object* x_22, lean_object* x_23, lean_object* x_24, lean_object* x_25, lean_object* x_26, lean_object* x_27) {
_start:
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; size_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; size_t x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; size_t x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; size_t x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_197; 
if (lean_obj_tag(x_27) == 0)
{
lean_object* x_237; 
lean_dec(x_26);
x_237 = lean_box(0);
x_197 = x_237;
goto block_236;
}
else
{
lean_object* x_238; uint8_t x_239; 
x_238 = lean_ctor_get(x_5, 0);
lean_inc_ref(x_238);
x_239 = !lean_is_exclusive(x_238);
if (x_239 == 0)
{
lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; 
x_240 = lean_ctor_get(x_27, 0);
x_241 = lean_ctor_get(x_3, 0);
x_242 = lean_ctor_get(x_238, 3);
x_243 = lean_ctor_get(x_238, 2);
lean_dec(x_243);
x_244 = lean_ctor_get(x_238, 1);
lean_dec(x_244);
x_245 = lean_ctor_get(x_238, 0);
lean_dec(x_245);
x_246 = lean_box(0);
lean_inc(x_241);
x_247 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_247, 0, x_241);
lean_ctor_set(x_247, 1, x_242);
x_248 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_248, 0, x_247);
x_249 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_249, 0, x_26);
x_250 = l_IO_Promise_result_x21___redArg(x_240);
lean_ctor_set(x_238, 3, x_250);
lean_ctor_set(x_238, 2, x_249);
lean_ctor_set(x_238, 1, x_248);
lean_ctor_set(x_238, 0, x_246);
x_251 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_251, 0, x_238);
x_197 = x_251;
goto block_236;
}
else
{
lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; 
x_252 = lean_ctor_get(x_27, 0);
x_253 = lean_ctor_get(x_3, 0);
x_254 = lean_ctor_get(x_238, 3);
lean_inc(x_254);
lean_dec(x_238);
x_255 = lean_box(0);
lean_inc(x_253);
x_256 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_256, 0, x_253);
lean_ctor_set(x_256, 1, x_254);
x_257 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_257, 0, x_256);
x_258 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_258, 0, x_26);
x_259 = l_IO_Promise_result_x21___redArg(x_252);
x_260 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_260, 0, x_255);
lean_ctor_set(x_260, 1, x_257);
lean_ctor_set(x_260, 2, x_258);
lean_ctor_set(x_260, 3, x_259);
x_261 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_261, 0, x_260);
x_197 = x_261;
goto block_236;
}
}
block_45:
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; 
x_37 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_37, 0, x_29);
lean_ctor_set(x_37, 1, x_1);
lean_ctor_set(x_37, 2, x_34);
lean_ctor_set(x_37, 3, x_35);
x_38 = lean_array_push(x_33, x_37);
x_39 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_39, 0, x_31);
lean_ctor_set(x_39, 1, x_38);
x_40 = lean_io_promise_resolve(x_39, x_2);
if (lean_obj_tag(x_27) == 1)
{
lean_object* x_41; lean_object* x_42; lean_object* x_43; 
x_41 = lean_ctor_get(x_27, 0);
lean_inc(x_41);
lean_dec_ref(x_27);
x_42 = lean_box(0);
x_43 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd(x_42, x_3, x_32, x_41, x_4, x_30, x_5);
return x_43;
}
else
{
lean_object* x_44; 
lean_dec_ref(x_32);
lean_dec(x_30);
lean_dec(x_27);
lean_dec_ref(x_5);
lean_dec_ref(x_3);
x_44 = lean_box(0);
return x_44;
}
}
block_110:
{
lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; 
x_76 = l_Lean_Language_Snapshot_Diagnostics_ofMessageLog(x_61);
x_77 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_77, 0, x_56);
lean_ctor_set(x_77, 1, x_76);
lean_ctor_set(x_77, 2, x_54);
lean_ctor_set(x_77, 3, x_64);
lean_ctor_set_uint8(x_77, sizeof(void*)*4, x_4);
x_78 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_78, 0, x_77);
lean_ctor_set(x_78, 1, x_74);
x_79 = lean_io_promise_resolve(x_78, x_10);
x_80 = l_Lean_Elab_InfoState_substituteLazy(x_63);
lean_inc(x_69);
x_81 = l_BaseIO_chainTask___redArg(x_80, x_68, x_69, x_7);
x_82 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__0;
x_83 = lean_st_ref_get(x_82);
x_84 = l_List_head_x21___redArg(x_14, x_62);
lean_dec(x_62);
x_85 = lean_ctor_get(x_84, 1);
lean_inc(x_85);
lean_dec(x_84);
x_86 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__1;
x_87 = l_Lean_checkTraceOption(x_83, x_85, x_86);
lean_dec(x_83);
if (x_87 == 0)
{
lean_object* x_88; lean_object* x_89; lean_object* x_90; 
lean_dec(x_85);
lean_dec_ref(x_73);
lean_dec_ref(x_71);
lean_dec(x_67);
lean_dec_ref(x_60);
lean_dec(x_58);
lean_dec_ref(x_55);
lean_dec(x_53);
lean_dec_ref(x_51);
lean_dec_ref(x_50);
lean_dec(x_49);
lean_dec(x_48);
lean_dec(x_47);
lean_dec_ref(x_46);
lean_dec(x_19);
lean_dec(x_18);
lean_dec_ref(x_17);
lean_dec_ref(x_16);
lean_dec_ref(x_15);
x_88 = lean_mk_empty_array_with_capacity(x_69);
lean_dec(x_69);
lean_inc_ref(x_66);
x_89 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_89, 0, x_66);
lean_ctor_set(x_89, 1, x_88);
x_90 = lean_task_pure(x_89);
x_29 = x_70;
x_30 = x_57;
x_31 = x_66;
x_32 = x_59;
x_33 = x_65;
x_34 = x_72;
x_35 = x_90;
x_36 = lean_box(0);
goto block_45;
}
else
{
lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; 
lean_inc(x_69);
x_91 = lean_task_map(x_15, x_71, x_69, x_7);
lean_inc(x_72);
lean_inc(x_58);
lean_inc(x_67);
x_92 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_92, 0, x_67);
lean_ctor_set(x_92, 1, x_58);
lean_ctor_set(x_92, 2, x_72);
lean_ctor_set(x_92, 3, x_91);
lean_inc(x_69);
x_93 = lean_task_map(x_16, x_55, x_69, x_7);
lean_inc(x_72);
lean_inc(x_58);
lean_inc(x_67);
x_94 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_94, 0, x_67);
lean_ctor_set(x_94, 1, x_58);
lean_ctor_set(x_94, 2, x_72);
lean_ctor_set(x_94, 3, x_93);
lean_inc(x_69);
x_95 = lean_task_map(x_17, x_73, x_69, x_7);
lean_inc(x_72);
x_96 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_96, 0, x_67);
lean_ctor_set(x_96, 1, x_58);
lean_ctor_set(x_96, 2, x_72);
lean_ctor_set(x_96, 3, x_95);
x_97 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__2;
x_98 = lean_array_push(x_97, x_92);
x_99 = lean_array_push(x_98, x_94);
x_100 = lean_array_push(x_99, x_96);
x_101 = l_Array_append___redArg(x_100, x_65);
lean_inc_ref(x_66);
x_102 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_102, 0, x_66);
lean_ctor_set(x_102, 1, x_101);
lean_inc_ref(x_102);
x_103 = l_Lean_Language_SnapshotTree_waitAll(x_102);
x_104 = lean_box_usize(x_52);
x_105 = lean_box(x_7);
x_106 = lean_box(x_4);
x_107 = lean_box(x_87);
lean_inc_ref(x_5);
x_108 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___boxed), 20, 18);
lean_closure_set(x_108, 0, x_18);
lean_closure_set(x_108, 1, x_48);
lean_closure_set(x_108, 2, x_53);
lean_closure_set(x_108, 3, x_104);
lean_closure_set(x_108, 4, x_105);
lean_closure_set(x_108, 5, x_60);
lean_closure_set(x_108, 6, x_51);
lean_closure_set(x_108, 7, x_82);
lean_closure_set(x_108, 8, x_5);
lean_closure_set(x_108, 9, x_85);
lean_closure_set(x_108, 10, x_47);
lean_closure_set(x_108, 11, x_106);
lean_closure_set(x_108, 12, x_102);
lean_closure_set(x_108, 13, x_19);
lean_closure_set(x_108, 14, x_46);
lean_closure_set(x_108, 15, x_49);
lean_closure_set(x_108, 16, x_50);
lean_closure_set(x_108, 17, x_107);
x_109 = lean_io_bind_task(x_103, x_108, x_69, x_4);
x_29 = x_70;
x_30 = x_57;
x_31 = x_66;
x_32 = x_59;
x_33 = x_65;
x_34 = x_72;
x_35 = x_109;
x_36 = lean_box(0);
goto block_45;
}
}
block_141:
{
lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; 
x_135 = lean_ctor_get(x_124, 0);
lean_inc_ref(x_135);
x_136 = lean_ctor_get(x_124, 1);
lean_inc_ref(x_136);
x_137 = lean_ctor_get(x_124, 2);
lean_inc(x_137);
x_138 = lean_ctor_get(x_124, 8);
lean_inc_ref(x_138);
x_139 = lean_ctor_get(x_124, 9);
lean_inc_ref(x_139);
x_140 = lean_ctor_get(x_124, 10);
lean_inc_ref(x_140);
x_46 = x_112;
x_47 = x_111;
x_48 = x_113;
x_49 = x_114;
x_50 = x_116;
x_51 = x_115;
x_52 = x_118;
x_53 = x_117;
x_54 = x_119;
x_55 = x_120;
x_56 = x_121;
x_57 = x_122;
x_58 = x_123;
x_59 = x_124;
x_60 = x_135;
x_61 = x_136;
x_62 = x_137;
x_63 = x_138;
x_64 = x_139;
x_65 = x_140;
x_66 = x_125;
x_67 = x_126;
x_68 = x_127;
x_69 = x_128;
x_70 = x_129;
x_71 = x_130;
x_72 = x_131;
x_73 = x_132;
x_74 = x_133;
x_75 = lean_box(0);
goto block_110;
}
block_196:
{
lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; uint8_t x_172; 
x_167 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_167, 0, x_166);
lean_ctor_set(x_167, 1, x_9);
lean_inc_ref(x_5);
lean_inc(x_154);
lean_inc(x_19);
lean_inc(x_20);
x_168 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab(x_20, x_21, x_19, x_167, x_154, x_5);
x_169 = lean_box(x_4);
x_170 = lean_box(x_7);
lean_inc(x_19);
lean_inc(x_150);
lean_inc_ref(x_5);
lean_inc_ref(x_14);
lean_inc_ref(x_168);
lean_inc_ref(x_148);
lean_inc_ref(x_143);
x_171 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___boxed), 13, 11);
lean_closure_set(x_171, 0, x_143);
lean_closure_set(x_171, 1, x_148);
lean_closure_set(x_171, 2, x_169);
lean_closure_set(x_171, 3, x_11);
lean_closure_set(x_171, 4, x_168);
lean_closure_set(x_171, 5, x_14);
lean_closure_set(x_171, 6, x_5);
lean_closure_set(x_171, 7, x_150);
lean_closure_set(x_171, 8, x_170);
lean_closure_set(x_171, 9, x_19);
lean_closure_set(x_171, 10, x_22);
x_172 = l_Lean_Option_get___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__1(x_23, x_24);
if (x_172 == 0)
{
lean_dec(x_164);
lean_dec_ref(x_159);
lean_dec(x_20);
lean_inc_ref(x_168);
x_111 = x_142;
x_112 = x_143;
x_113 = x_144;
x_114 = x_145;
x_115 = x_148;
x_116 = x_147;
x_117 = x_150;
x_118 = x_149;
x_119 = x_151;
x_120 = x_152;
x_121 = x_155;
x_122 = x_154;
x_123 = x_156;
x_124 = x_168;
x_125 = x_157;
x_126 = x_158;
x_127 = x_171;
x_128 = x_161;
x_129 = x_160;
x_130 = x_162;
x_131 = x_163;
x_132 = x_165;
x_133 = x_168;
x_134 = lean_box(0);
goto block_141;
}
else
{
uint8_t x_173; 
x_173 = l_Lean_Parser_isTerminalCommand(x_20);
if (x_173 == 0)
{
if (x_172 == 0)
{
lean_dec(x_164);
lean_dec_ref(x_159);
lean_inc_ref(x_168);
x_111 = x_142;
x_112 = x_143;
x_113 = x_144;
x_114 = x_145;
x_115 = x_148;
x_116 = x_147;
x_117 = x_150;
x_118 = x_149;
x_119 = x_151;
x_120 = x_152;
x_121 = x_155;
x_122 = x_154;
x_123 = x_156;
x_124 = x_168;
x_125 = x_157;
x_126 = x_158;
x_127 = x_171;
x_128 = x_161;
x_129 = x_160;
x_130 = x_162;
x_131 = x_163;
x_132 = x_165;
x_133 = x_168;
x_134 = lean_box(0);
goto block_141;
}
else
{
lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; 
x_174 = lean_ctor_get(x_168, 0);
lean_inc_ref(x_174);
x_175 = lean_ctor_get(x_168, 1);
lean_inc_ref(x_175);
x_176 = lean_ctor_get(x_168, 2);
lean_inc(x_176);
x_177 = lean_ctor_get(x_168, 8);
lean_inc_ref(x_177);
x_178 = lean_ctor_get(x_168, 9);
lean_inc_ref(x_178);
x_179 = lean_ctor_get(x_168, 10);
lean_inc_ref(x_179);
x_180 = lean_mk_empty_array_with_capacity(x_164);
lean_dec(x_164);
lean_inc_ref(x_180);
x_181 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_181, 0, x_180);
lean_inc_n(x_161, 2);
x_182 = lean_alloc_ctor(0, 4, sizeof(size_t)*1);
lean_ctor_set(x_182, 0, x_181);
lean_ctor_set(x_182, 1, x_180);
lean_ctor_set(x_182, 2, x_161);
lean_ctor_set(x_182, 3, x_161);
lean_ctor_set_usize(x_182, 4, x_153);
x_183 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__7;
lean_inc_ref_n(x_182, 2);
x_184 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_184, 0, x_182);
lean_ctor_set(x_184, 1, x_182);
lean_ctor_set(x_184, 2, x_183);
x_185 = l_panic___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__11___closed__0;
x_186 = lean_box(0);
x_187 = lean_mk_empty_array_with_capacity(x_161);
lean_inc_ref_n(x_187, 2);
lean_inc(x_18);
x_188 = lean_alloc_ctor(0, 10, 3);
lean_ctor_set(x_188, 0, x_185);
lean_ctor_set(x_188, 1, x_186);
lean_ctor_set(x_188, 2, x_18);
lean_ctor_set(x_188, 3, x_186);
lean_ctor_set(x_188, 4, x_186);
lean_ctor_set(x_188, 5, x_187);
lean_ctor_set(x_188, 6, x_187);
lean_ctor_set(x_188, 7, x_186);
lean_ctor_set(x_188, 8, x_186);
lean_ctor_set(x_188, 9, x_186);
lean_ctor_set_uint8(x_188, sizeof(void*)*10, x_4);
lean_ctor_set_uint8(x_188, sizeof(void*)*10 + 1, x_4);
lean_ctor_set_uint8(x_188, sizeof(void*)*10 + 2, x_4);
x_189 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_189, 0, x_188);
lean_ctor_set(x_189, 1, x_186);
x_190 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__0;
x_191 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__3;
lean_inc(x_18);
x_192 = l_Lean_DeclNameGenerator_ofPrefix(x_18);
x_193 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__4;
x_194 = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(x_194, 0, x_193);
lean_ctor_set(x_194, 1, x_193);
lean_ctor_set(x_194, 2, x_182);
lean_ctor_set_uint8(x_194, sizeof(void*)*3, x_7);
lean_inc(x_161);
lean_inc_ref(x_174);
x_195 = lean_alloc_ctor(0, 11, 0);
lean_ctor_set(x_195, 0, x_174);
lean_ctor_set(x_195, 1, x_184);
lean_ctor_set(x_195, 2, x_189);
lean_ctor_set(x_195, 3, x_183);
lean_ctor_set(x_195, 4, x_190);
lean_ctor_set(x_195, 5, x_161);
lean_ctor_set(x_195, 6, x_191);
lean_ctor_set(x_195, 7, x_192);
lean_ctor_set(x_195, 8, x_194);
lean_ctor_set(x_195, 9, x_159);
lean_ctor_set(x_195, 10, x_187);
x_46 = x_143;
x_47 = x_142;
x_48 = x_144;
x_49 = x_145;
x_50 = x_147;
x_51 = x_148;
x_52 = x_149;
x_53 = x_150;
x_54 = x_151;
x_55 = x_152;
x_56 = x_155;
x_57 = x_154;
x_58 = x_156;
x_59 = x_168;
x_60 = x_174;
x_61 = x_175;
x_62 = x_176;
x_63 = x_177;
x_64 = x_178;
x_65 = x_179;
x_66 = x_157;
x_67 = x_158;
x_68 = x_171;
x_69 = x_161;
x_70 = x_160;
x_71 = x_162;
x_72 = x_163;
x_73 = x_165;
x_74 = x_195;
x_75 = lean_box(0);
goto block_110;
}
}
else
{
lean_dec(x_164);
lean_dec_ref(x_159);
lean_inc_ref(x_168);
x_111 = x_142;
x_112 = x_143;
x_113 = x_144;
x_114 = x_145;
x_115 = x_148;
x_116 = x_147;
x_117 = x_150;
x_118 = x_149;
x_119 = x_151;
x_120 = x_152;
x_121 = x_155;
x_122 = x_154;
x_123 = x_156;
x_124 = x_168;
x_125 = x_157;
x_126 = x_158;
x_127 = x_171;
x_128 = x_161;
x_129 = x_160;
x_130 = x_162;
x_131 = x_163;
x_132 = x_165;
x_133 = x_168;
x_134 = lean_box(0);
goto block_141;
}
}
}
block_236:
{
lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; size_t x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; 
x_198 = l_Lean_Language_Snapshot_Diagnostics_ofMessageLog(x_6);
x_199 = l_IO_CancelToken_new();
x_200 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__6;
x_201 = l_Lean_Name_toString(x_200, x_7);
x_202 = lean_box(0);
x_203 = lean_unsigned_to_nat(0u);
x_204 = lean_unsigned_to_nat(32u);
x_205 = 5;
x_206 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__17;
lean_inc_ref(x_201);
x_207 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_207, 0, x_201);
lean_ctor_set(x_207, 1, x_198);
lean_ctor_set(x_207, 2, x_202);
lean_ctor_set(x_207, 3, x_206);
lean_ctor_set_uint8(x_207, sizeof(void*)*4, x_4);
x_208 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__8;
lean_inc_ref(x_201);
x_209 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_209, 0, x_201);
lean_ctor_set(x_209, 1, x_208);
lean_ctor_set(x_209, 2, x_202);
lean_ctor_set(x_209, 3, x_206);
lean_ctor_set_uint8(x_209, sizeof(void*)*4, x_4);
lean_inc(x_8);
x_210 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_210, 0, x_8);
x_211 = l_Lean_Language_SnapshotTask_defaultReportingRange(x_210);
lean_inc(x_199);
x_212 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_212, 0, x_199);
x_213 = l_IO_Promise_result_x21___redArg(x_9);
lean_inc_ref(x_213);
lean_inc(x_211);
lean_inc_ref(x_210);
x_214 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_214, 0, x_210);
lean_ctor_set(x_214, 1, x_211);
lean_ctor_set(x_214, 2, x_212);
lean_ctor_set(x_214, 3, x_213);
x_215 = l_IO_Promise_result_x21___redArg(x_10);
lean_inc_ref(x_215);
lean_inc(x_1);
lean_inc_ref(x_210);
x_216 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_216, 0, x_210);
lean_ctor_set(x_216, 1, x_1);
lean_ctor_set(x_216, 2, x_202);
lean_ctor_set(x_216, 3, x_215);
x_217 = l_IO_Promise_result_x21___redArg(x_11);
lean_inc_ref(x_217);
lean_inc(x_1);
lean_inc_ref(x_210);
x_218 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_218, 0, x_210);
lean_ctor_set(x_218, 1, x_1);
lean_ctor_set(x_218, 2, x_202);
lean_ctor_set(x_218, 3, x_217);
x_219 = l_IO_Promise_result_x21___redArg(x_2);
lean_inc(x_1);
x_220 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_220, 0, x_202);
lean_ctor_set(x_220, 1, x_1);
lean_ctor_set(x_220, 2, x_202);
lean_ctor_set(x_220, 3, x_219);
lean_inc_ref(x_209);
x_221 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_221, 0, x_209);
lean_ctor_set(x_221, 1, x_214);
lean_ctor_set(x_221, 2, x_216);
lean_ctor_set(x_221, 3, x_218);
lean_ctor_set(x_221, 4, x_220);
x_222 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_222, 0, x_207);
lean_ctor_set(x_222, 1, x_8);
lean_ctor_set(x_222, 2, x_12);
lean_ctor_set(x_222, 3, x_221);
lean_ctor_set(x_222, 4, x_197);
x_223 = lean_io_promise_resolve(x_222, x_13);
if (lean_obj_tag(x_25) == 0)
{
lean_inc_ref(x_209);
lean_inc_ref(x_201);
x_142 = x_202;
x_143 = x_201;
x_144 = x_204;
x_145 = x_202;
x_146 = lean_box(0);
x_147 = x_209;
x_148 = x_206;
x_149 = x_205;
x_150 = x_203;
x_151 = x_202;
x_152 = x_215;
x_153 = x_205;
x_154 = x_199;
x_155 = x_201;
x_156 = x_211;
x_157 = x_209;
x_158 = x_210;
x_159 = x_206;
x_160 = x_202;
x_161 = x_203;
x_162 = x_213;
x_163 = x_202;
x_164 = x_204;
x_165 = x_217;
x_166 = x_202;
goto block_196;
}
else
{
uint8_t x_224; 
x_224 = !lean_is_exclusive(x_25);
if (x_224 == 0)
{
lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; 
x_225 = lean_ctor_get(x_25, 0);
x_226 = lean_ctor_get(x_225, 3);
lean_inc_ref(x_226);
x_227 = lean_ctor_get(x_225, 1);
lean_inc(x_227);
lean_dec(x_225);
x_228 = lean_ctor_get(x_226, 1);
lean_inc_ref(x_228);
lean_dec_ref(x_226);
x_229 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_229, 0, x_227);
lean_ctor_set(x_229, 1, x_228);
lean_ctor_set(x_25, 0, x_229);
lean_inc_ref(x_209);
lean_inc_ref(x_201);
x_142 = x_202;
x_143 = x_201;
x_144 = x_204;
x_145 = x_202;
x_146 = lean_box(0);
x_147 = x_209;
x_148 = x_206;
x_149 = x_205;
x_150 = x_203;
x_151 = x_202;
x_152 = x_215;
x_153 = x_205;
x_154 = x_199;
x_155 = x_201;
x_156 = x_211;
x_157 = x_209;
x_158 = x_210;
x_159 = x_206;
x_160 = x_202;
x_161 = x_203;
x_162 = x_213;
x_163 = x_202;
x_164 = x_204;
x_165 = x_217;
x_166 = x_25;
goto block_196;
}
else
{
lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; 
x_230 = lean_ctor_get(x_25, 0);
lean_inc(x_230);
lean_dec(x_25);
x_231 = lean_ctor_get(x_230, 3);
lean_inc_ref(x_231);
x_232 = lean_ctor_get(x_230, 1);
lean_inc(x_232);
lean_dec(x_230);
x_233 = lean_ctor_get(x_231, 1);
lean_inc_ref(x_233);
lean_dec_ref(x_231);
x_234 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_234, 0, x_232);
lean_ctor_set(x_234, 1, x_233);
x_235 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_235, 0, x_234);
lean_inc_ref(x_209);
lean_inc_ref(x_201);
x_142 = x_202;
x_143 = x_201;
x_144 = x_204;
x_145 = x_202;
x_146 = lean_box(0);
x_147 = x_209;
x_148 = x_206;
x_149 = x_205;
x_150 = x_203;
x_151 = x_202;
x_152 = x_215;
x_153 = x_205;
x_154 = x_199;
x_155 = x_201;
x_156 = x_211;
x_157 = x_209;
x_158 = x_210;
x_159 = x_206;
x_160 = x_202;
x_161 = x_203;
x_162 = x_213;
x_163 = x_202;
x_164 = x_204;
x_165 = x_217;
x_166 = x_235;
goto block_196;
}
}
}
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__11___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Parser_instInhabitedModuleParserState_default;
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__11(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) {
_start:
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; size_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_110; lean_object* x_111; lean_object* x_112; size_t x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; size_t x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; size_t x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_278; lean_object* x_279; uint8_t x_289; uint8_t x_293; 
x_20 = lean_io_promise_new();
x_21 = lean_io_promise_new();
x_22 = lean_io_promise_new();
x_23 = lean_io_promise_new();
x_143 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__3;
x_293 = l_Lean_Option_get___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__1(x_16, x_143);
if (x_293 == 0)
{
x_289 = x_293;
goto block_292;
}
else
{
uint8_t x_294; 
lean_inc(x_13);
x_294 = l_Lean_Parser_isTerminalCommand(x_13);
if (x_294 == 0)
{
x_289 = x_293;
goto block_292;
}
else
{
lean_inc_ref(x_1);
lean_inc(x_13);
x_278 = x_13;
x_279 = x_1;
goto block_288;
}
}
block_42:
{
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; 
x_34 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_34, 0, x_25);
lean_ctor_set(x_34, 1, x_27);
lean_ctor_set(x_34, 2, x_24);
lean_ctor_set(x_34, 3, x_32);
x_35 = lean_array_push(x_30, x_34);
x_36 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_36, 0, x_31);
lean_ctor_set(x_36, 1, x_35);
x_37 = lean_io_promise_resolve(x_36, x_23);
lean_dec(x_23);
if (lean_obj_tag(x_28) == 1)
{
lean_object* x_38; lean_object* x_39; lean_object* x_40; 
x_38 = lean_ctor_get(x_28, 0);
lean_inc(x_38);
lean_dec_ref(x_28);
x_39 = lean_box(0);
x_40 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd(x_39, x_1, x_29, x_38, x_2, x_26, x_3);
return x_40;
}
else
{
lean_object* x_41; 
lean_dec_ref(x_29);
lean_dec(x_28);
lean_dec(x_26);
lean_dec_ref(x_3);
lean_dec_ref(x_1);
x_41 = lean_box(0);
return x_41;
}
}
block_109:
{
lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; 
x_75 = l_Lean_Language_Snapshot_Diagnostics_ofMessageLog(x_68);
x_76 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_76, 0, x_55);
lean_ctor_set(x_76, 1, x_75);
lean_ctor_set(x_76, 2, x_54);
lean_ctor_set(x_76, 3, x_71);
lean_ctor_set_uint8(x_76, sizeof(void*)*4, x_2);
x_77 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_77, 0, x_76);
lean_ctor_set(x_77, 1, x_73);
x_78 = lean_io_promise_resolve(x_77, x_21);
lean_dec(x_21);
x_79 = l_Lean_Elab_InfoState_substituteLazy(x_70);
lean_inc(x_63);
x_80 = l_BaseIO_chainTask___redArg(x_79, x_62, x_63, x_5);
x_81 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__0;
x_82 = lean_st_ref_get(x_81);
x_83 = l_List_head_x21___redArg(x_7, x_69);
lean_dec(x_69);
x_84 = lean_ctor_get(x_83, 1);
lean_inc(x_84);
lean_dec(x_83);
x_85 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__1;
x_86 = l_Lean_checkTraceOption(x_82, x_84, x_85);
lean_dec(x_82);
if (x_86 == 0)
{
lean_object* x_87; lean_object* x_88; lean_object* x_89; 
lean_dec(x_84);
lean_dec_ref(x_67);
lean_dec(x_65);
lean_dec_ref(x_61);
lean_dec_ref(x_59);
lean_dec_ref(x_52);
lean_dec(x_51);
lean_dec(x_50);
lean_dec_ref(x_48);
lean_dec(x_47);
lean_dec_ref(x_46);
lean_dec(x_45);
lean_dec(x_44);
lean_dec_ref(x_43);
lean_dec(x_12);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec_ref(x_9);
lean_dec_ref(x_8);
x_87 = lean_mk_empty_array_with_capacity(x_63);
lean_dec(x_63);
lean_inc_ref(x_56);
x_88 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_88, 0, x_56);
lean_ctor_set(x_88, 1, x_87);
x_89 = lean_task_pure(x_88);
x_24 = x_57;
x_25 = x_58;
x_26 = x_60;
x_27 = x_53;
x_28 = x_64;
x_29 = x_66;
x_30 = x_72;
x_31 = x_56;
x_32 = x_89;
x_33 = lean_box(0);
goto block_42;
}
else
{
lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; 
lean_inc(x_63);
x_90 = lean_task_map(x_8, x_59, x_63, x_5);
lean_inc(x_57);
lean_inc(x_65);
lean_inc(x_51);
x_91 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_91, 0, x_51);
lean_ctor_set(x_91, 1, x_65);
lean_ctor_set(x_91, 2, x_57);
lean_ctor_set(x_91, 3, x_90);
lean_inc(x_63);
x_92 = lean_task_map(x_9, x_61, x_63, x_5);
lean_inc(x_57);
lean_inc(x_65);
lean_inc(x_51);
x_93 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_93, 0, x_51);
lean_ctor_set(x_93, 1, x_65);
lean_ctor_set(x_93, 2, x_57);
lean_ctor_set(x_93, 3, x_92);
lean_inc(x_63);
x_94 = lean_task_map(x_10, x_52, x_63, x_5);
lean_inc(x_57);
x_95 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_95, 0, x_51);
lean_ctor_set(x_95, 1, x_65);
lean_ctor_set(x_95, 2, x_57);
lean_ctor_set(x_95, 3, x_94);
x_96 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__2;
x_97 = lean_array_push(x_96, x_91);
x_98 = lean_array_push(x_97, x_93);
x_99 = lean_array_push(x_98, x_95);
x_100 = l_Array_append___redArg(x_99, x_72);
lean_inc_ref(x_56);
x_101 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_101, 0, x_56);
lean_ctor_set(x_101, 1, x_100);
lean_inc_ref(x_101);
x_102 = l_Lean_Language_SnapshotTree_waitAll(x_101);
x_103 = lean_box_usize(x_49);
x_104 = lean_box(x_5);
x_105 = lean_box(x_2);
x_106 = lean_box(x_86);
lean_inc_ref(x_3);
x_107 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___boxed), 20, 18);
lean_closure_set(x_107, 0, x_11);
lean_closure_set(x_107, 1, x_45);
lean_closure_set(x_107, 2, x_44);
lean_closure_set(x_107, 3, x_103);
lean_closure_set(x_107, 4, x_104);
lean_closure_set(x_107, 5, x_67);
lean_closure_set(x_107, 6, x_43);
lean_closure_set(x_107, 7, x_81);
lean_closure_set(x_107, 8, x_3);
lean_closure_set(x_107, 9, x_84);
lean_closure_set(x_107, 10, x_50);
lean_closure_set(x_107, 11, x_105);
lean_closure_set(x_107, 12, x_101);
lean_closure_set(x_107, 13, x_12);
lean_closure_set(x_107, 14, x_48);
lean_closure_set(x_107, 15, x_47);
lean_closure_set(x_107, 16, x_46);
lean_closure_set(x_107, 17, x_106);
x_108 = lean_io_bind_task(x_102, x_107, x_63, x_2);
x_24 = x_57;
x_25 = x_58;
x_26 = x_60;
x_27 = x_53;
x_28 = x_64;
x_29 = x_66;
x_30 = x_72;
x_31 = x_56;
x_32 = x_108;
x_33 = lean_box(0);
goto block_42;
}
}
block_142:
{
lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; 
x_136 = lean_ctor_get(x_133, 0);
lean_inc_ref(x_136);
x_137 = lean_ctor_get(x_133, 1);
lean_inc_ref(x_137);
x_138 = lean_ctor_get(x_133, 2);
lean_inc(x_138);
x_139 = lean_ctor_get(x_133, 8);
lean_inc_ref(x_139);
x_140 = lean_ctor_get(x_133, 9);
lean_inc_ref(x_140);
x_141 = lean_ctor_get(x_133, 10);
lean_inc_ref(x_141);
x_43 = x_111;
x_44 = x_110;
x_45 = x_112;
x_46 = x_116;
x_47 = x_115;
x_48 = x_114;
x_49 = x_113;
x_50 = x_117;
x_51 = x_118;
x_52 = x_119;
x_53 = x_120;
x_54 = x_121;
x_55 = x_122;
x_56 = x_123;
x_57 = x_124;
x_58 = x_125;
x_59 = x_126;
x_60 = x_127;
x_61 = x_128;
x_62 = x_129;
x_63 = x_130;
x_64 = x_131;
x_65 = x_132;
x_66 = x_133;
x_67 = x_136;
x_68 = x_137;
x_69 = x_138;
x_70 = x_139;
x_71 = x_140;
x_72 = x_141;
x_73 = x_134;
x_74 = lean_box(0);
goto block_109;
}
block_200:
{
lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; uint8_t x_176; 
x_171 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_171, 0, x_170);
lean_ctor_set(x_171, 1, x_20);
lean_inc_ref(x_3);
lean_inc(x_165);
lean_inc(x_12);
lean_inc(x_13);
x_172 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab(x_13, x_14, x_12, x_171, x_165, x_3);
x_173 = lean_box(x_2);
x_174 = lean_box(x_5);
lean_inc(x_12);
lean_inc(x_144);
lean_inc_ref(x_3);
lean_inc_ref(x_7);
lean_inc_ref(x_172);
lean_inc_ref(x_145);
lean_inc_ref(x_151);
x_175 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___boxed), 13, 11);
lean_closure_set(x_175, 0, x_151);
lean_closure_set(x_175, 1, x_145);
lean_closure_set(x_175, 2, x_173);
lean_closure_set(x_175, 3, x_22);
lean_closure_set(x_175, 4, x_172);
lean_closure_set(x_175, 5, x_7);
lean_closure_set(x_175, 6, x_3);
lean_closure_set(x_175, 7, x_144);
lean_closure_set(x_175, 8, x_174);
lean_closure_set(x_175, 9, x_12);
lean_closure_set(x_175, 10, x_15);
x_176 = l_Lean_Option_get___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__1(x_16, x_143);
if (x_176 == 0)
{
lean_dec(x_161);
lean_dec_ref(x_153);
lean_dec(x_13);
lean_inc_ref(x_172);
x_110 = x_144;
x_111 = x_145;
x_112 = x_147;
x_113 = x_150;
x_114 = x_151;
x_115 = x_149;
x_116 = x_148;
x_117 = x_152;
x_118 = x_154;
x_119 = x_156;
x_120 = x_157;
x_121 = x_158;
x_122 = x_159;
x_123 = x_160;
x_124 = x_162;
x_125 = x_163;
x_126 = x_164;
x_127 = x_165;
x_128 = x_166;
x_129 = x_175;
x_130 = x_167;
x_131 = x_168;
x_132 = x_169;
x_133 = x_172;
x_134 = x_172;
x_135 = lean_box(0);
goto block_142;
}
else
{
uint8_t x_177; 
x_177 = l_Lean_Parser_isTerminalCommand(x_13);
if (x_177 == 0)
{
if (x_176 == 0)
{
lean_dec(x_161);
lean_dec_ref(x_153);
lean_inc_ref(x_172);
x_110 = x_144;
x_111 = x_145;
x_112 = x_147;
x_113 = x_150;
x_114 = x_151;
x_115 = x_149;
x_116 = x_148;
x_117 = x_152;
x_118 = x_154;
x_119 = x_156;
x_120 = x_157;
x_121 = x_158;
x_122 = x_159;
x_123 = x_160;
x_124 = x_162;
x_125 = x_163;
x_126 = x_164;
x_127 = x_165;
x_128 = x_166;
x_129 = x_175;
x_130 = x_167;
x_131 = x_168;
x_132 = x_169;
x_133 = x_172;
x_134 = x_172;
x_135 = lean_box(0);
goto block_142;
}
else
{
lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; 
x_178 = lean_ctor_get(x_172, 0);
lean_inc_ref(x_178);
x_179 = lean_ctor_get(x_172, 1);
lean_inc_ref(x_179);
x_180 = lean_ctor_get(x_172, 2);
lean_inc(x_180);
x_181 = lean_ctor_get(x_172, 8);
lean_inc_ref(x_181);
x_182 = lean_ctor_get(x_172, 9);
lean_inc_ref(x_182);
x_183 = lean_ctor_get(x_172, 10);
lean_inc_ref(x_183);
x_184 = lean_mk_empty_array_with_capacity(x_161);
lean_dec(x_161);
lean_inc_ref(x_184);
x_185 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_185, 0, x_184);
lean_inc_n(x_167, 2);
x_186 = lean_alloc_ctor(0, 4, sizeof(size_t)*1);
lean_ctor_set(x_186, 0, x_185);
lean_ctor_set(x_186, 1, x_184);
lean_ctor_set(x_186, 2, x_167);
lean_ctor_set(x_186, 3, x_167);
lean_ctor_set_usize(x_186, 4, x_155);
x_187 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__7;
lean_inc_ref_n(x_186, 2);
x_188 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_188, 0, x_186);
lean_ctor_set(x_188, 1, x_186);
lean_ctor_set(x_188, 2, x_187);
x_189 = l_panic___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__11___closed__0;
x_190 = lean_box(0);
x_191 = lean_mk_empty_array_with_capacity(x_167);
lean_inc_ref_n(x_191, 2);
lean_inc(x_11);
x_192 = lean_alloc_ctor(0, 10, 3);
lean_ctor_set(x_192, 0, x_189);
lean_ctor_set(x_192, 1, x_190);
lean_ctor_set(x_192, 2, x_11);
lean_ctor_set(x_192, 3, x_190);
lean_ctor_set(x_192, 4, x_190);
lean_ctor_set(x_192, 5, x_191);
lean_ctor_set(x_192, 6, x_191);
lean_ctor_set(x_192, 7, x_190);
lean_ctor_set(x_192, 8, x_190);
lean_ctor_set(x_192, 9, x_190);
lean_ctor_set_uint8(x_192, sizeof(void*)*10, x_2);
lean_ctor_set_uint8(x_192, sizeof(void*)*10 + 1, x_2);
lean_ctor_set_uint8(x_192, sizeof(void*)*10 + 2, x_2);
x_193 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_193, 0, x_192);
lean_ctor_set(x_193, 1, x_190);
x_194 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__0;
x_195 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__3;
lean_inc(x_11);
x_196 = l_Lean_DeclNameGenerator_ofPrefix(x_11);
x_197 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__4;
x_198 = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(x_198, 0, x_197);
lean_ctor_set(x_198, 1, x_197);
lean_ctor_set(x_198, 2, x_186);
lean_ctor_set_uint8(x_198, sizeof(void*)*3, x_5);
lean_inc(x_167);
lean_inc_ref(x_178);
x_199 = lean_alloc_ctor(0, 11, 0);
lean_ctor_set(x_199, 0, x_178);
lean_ctor_set(x_199, 1, x_188);
lean_ctor_set(x_199, 2, x_193);
lean_ctor_set(x_199, 3, x_187);
lean_ctor_set(x_199, 4, x_194);
lean_ctor_set(x_199, 5, x_167);
lean_ctor_set(x_199, 6, x_195);
lean_ctor_set(x_199, 7, x_196);
lean_ctor_set(x_199, 8, x_198);
lean_ctor_set(x_199, 9, x_153);
lean_ctor_set(x_199, 10, x_191);
x_43 = x_145;
x_44 = x_144;
x_45 = x_147;
x_46 = x_148;
x_47 = x_149;
x_48 = x_151;
x_49 = x_150;
x_50 = x_152;
x_51 = x_154;
x_52 = x_156;
x_53 = x_157;
x_54 = x_158;
x_55 = x_159;
x_56 = x_160;
x_57 = x_162;
x_58 = x_163;
x_59 = x_164;
x_60 = x_165;
x_61 = x_166;
x_62 = x_175;
x_63 = x_167;
x_64 = x_168;
x_65 = x_169;
x_66 = x_172;
x_67 = x_178;
x_68 = x_179;
x_69 = x_180;
x_70 = x_181;
x_71 = x_182;
x_72 = x_183;
x_73 = x_199;
x_74 = lean_box(0);
goto block_109;
}
}
else
{
lean_dec(x_161);
lean_dec_ref(x_153);
lean_inc_ref(x_172);
x_110 = x_144;
x_111 = x_145;
x_112 = x_147;
x_113 = x_150;
x_114 = x_151;
x_115 = x_149;
x_116 = x_148;
x_117 = x_152;
x_118 = x_154;
x_119 = x_156;
x_120 = x_157;
x_121 = x_158;
x_122 = x_159;
x_123 = x_160;
x_124 = x_162;
x_125 = x_163;
x_126 = x_164;
x_127 = x_165;
x_128 = x_166;
x_129 = x_175;
x_130 = x_167;
x_131 = x_168;
x_132 = x_169;
x_133 = x_172;
x_134 = x_172;
x_135 = lean_box(0);
goto block_142;
}
}
}
block_245:
{
lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; size_t x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; 
x_207 = l_Lean_Language_Snapshot_Diagnostics_ofMessageLog(x_4);
x_208 = l_IO_CancelToken_new();
x_209 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__6;
x_210 = l_Lean_Name_toString(x_209, x_5);
x_211 = lean_box(0);
x_212 = lean_unsigned_to_nat(0u);
x_213 = lean_unsigned_to_nat(32u);
x_214 = 5;
x_215 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__17;
lean_inc_ref(x_210);
x_216 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_216, 0, x_210);
lean_ctor_set(x_216, 1, x_207);
lean_ctor_set(x_216, 2, x_211);
lean_ctor_set(x_216, 3, x_215);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_2);
x_217 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__8;
lean_inc_ref(x_210);
x_218 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_218, 0, x_210);
lean_ctor_set(x_218, 1, x_217);
lean_ctor_set(x_218, 2, x_211);
lean_ctor_set(x_218, 3, x_215);
lean_ctor_set_uint8(x_218, sizeof(void*)*4, x_2);
lean_inc(x_201);
x_219 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_219, 0, x_201);
x_220 = l_Lean_Language_SnapshotTask_defaultReportingRange(x_219);
lean_inc(x_208);
x_221 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_221, 0, x_208);
x_222 = l_IO_Promise_result_x21___redArg(x_20);
lean_inc_ref(x_222);
lean_inc(x_220);
lean_inc_ref(x_219);
x_223 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_223, 0, x_219);
lean_ctor_set(x_223, 1, x_220);
lean_ctor_set(x_223, 2, x_221);
lean_ctor_set(x_223, 3, x_222);
x_224 = l_IO_Promise_result_x21___redArg(x_21);
lean_inc_ref(x_224);
lean_inc(x_203);
lean_inc_ref(x_219);
x_225 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_225, 0, x_219);
lean_ctor_set(x_225, 1, x_203);
lean_ctor_set(x_225, 2, x_211);
lean_ctor_set(x_225, 3, x_224);
x_226 = l_IO_Promise_result_x21___redArg(x_22);
lean_inc_ref(x_226);
lean_inc(x_203);
lean_inc_ref(x_219);
x_227 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_227, 0, x_219);
lean_ctor_set(x_227, 1, x_203);
lean_ctor_set(x_227, 2, x_211);
lean_ctor_set(x_227, 3, x_226);
x_228 = l_IO_Promise_result_x21___redArg(x_23);
lean_inc(x_203);
x_229 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_229, 0, x_211);
lean_ctor_set(x_229, 1, x_203);
lean_ctor_set(x_229, 2, x_211);
lean_ctor_set(x_229, 3, x_228);
lean_inc_ref(x_218);
x_230 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_230, 0, x_218);
lean_ctor_set(x_230, 1, x_223);
lean_ctor_set(x_230, 2, x_225);
lean_ctor_set(x_230, 3, x_227);
lean_ctor_set(x_230, 4, x_229);
x_231 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_231, 0, x_216);
lean_ctor_set(x_231, 1, x_201);
lean_ctor_set(x_231, 2, x_202);
lean_ctor_set(x_231, 3, x_230);
lean_ctor_set(x_231, 4, x_206);
x_232 = lean_io_promise_resolve(x_231, x_6);
if (lean_obj_tag(x_17) == 0)
{
lean_inc_ref(x_210);
lean_inc_ref(x_218);
x_144 = x_212;
x_145 = x_215;
x_146 = lean_box(0);
x_147 = x_213;
x_148 = x_218;
x_149 = x_211;
x_150 = x_214;
x_151 = x_210;
x_152 = x_211;
x_153 = x_215;
x_154 = x_219;
x_155 = x_214;
x_156 = x_226;
x_157 = x_203;
x_158 = x_211;
x_159 = x_210;
x_160 = x_218;
x_161 = x_213;
x_162 = x_211;
x_163 = x_211;
x_164 = x_222;
x_165 = x_208;
x_166 = x_224;
x_167 = x_212;
x_168 = x_204;
x_169 = x_220;
x_170 = x_211;
goto block_200;
}
else
{
uint8_t x_233; 
x_233 = !lean_is_exclusive(x_17);
if (x_233 == 0)
{
lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; 
x_234 = lean_ctor_get(x_17, 0);
x_235 = lean_ctor_get(x_234, 3);
lean_inc_ref(x_235);
x_236 = lean_ctor_get(x_234, 1);
lean_inc(x_236);
lean_dec(x_234);
x_237 = lean_ctor_get(x_235, 1);
lean_inc_ref(x_237);
lean_dec_ref(x_235);
x_238 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_238, 0, x_236);
lean_ctor_set(x_238, 1, x_237);
lean_ctor_set(x_17, 0, x_238);
lean_inc_ref(x_210);
lean_inc_ref(x_218);
x_144 = x_212;
x_145 = x_215;
x_146 = lean_box(0);
x_147 = x_213;
x_148 = x_218;
x_149 = x_211;
x_150 = x_214;
x_151 = x_210;
x_152 = x_211;
x_153 = x_215;
x_154 = x_219;
x_155 = x_214;
x_156 = x_226;
x_157 = x_203;
x_158 = x_211;
x_159 = x_210;
x_160 = x_218;
x_161 = x_213;
x_162 = x_211;
x_163 = x_211;
x_164 = x_222;
x_165 = x_208;
x_166 = x_224;
x_167 = x_212;
x_168 = x_204;
x_169 = x_220;
x_170 = x_17;
goto block_200;
}
else
{
lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; 
x_239 = lean_ctor_get(x_17, 0);
lean_inc(x_239);
lean_dec(x_17);
x_240 = lean_ctor_get(x_239, 3);
lean_inc_ref(x_240);
x_241 = lean_ctor_get(x_239, 1);
lean_inc(x_241);
lean_dec(x_239);
x_242 = lean_ctor_get(x_240, 1);
lean_inc_ref(x_242);
lean_dec_ref(x_240);
x_243 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_243, 0, x_241);
lean_ctor_set(x_243, 1, x_242);
x_244 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_244, 0, x_243);
lean_inc_ref(x_210);
lean_inc_ref(x_218);
x_144 = x_212;
x_145 = x_215;
x_146 = lean_box(0);
x_147 = x_213;
x_148 = x_218;
x_149 = x_211;
x_150 = x_214;
x_151 = x_210;
x_152 = x_211;
x_153 = x_215;
x_154 = x_219;
x_155 = x_214;
x_156 = x_226;
x_157 = x_203;
x_158 = x_211;
x_159 = x_210;
x_160 = x_218;
x_161 = x_213;
x_162 = x_211;
x_163 = x_211;
x_164 = x_222;
x_165 = x_208;
x_166 = x_224;
x_167 = x_212;
x_168 = x_204;
x_169 = x_220;
x_170 = x_244;
goto block_200;
}
}
}
block_277:
{
lean_object* x_249; uint8_t x_250; 
x_249 = l_Lean_Language_SnapshotTask_ReportingRange_ofOptionInheriting(x_248);
lean_inc(x_13);
x_250 = l_Lean_Parser_isTerminalCommand(x_13);
if (x_250 == 0)
{
lean_object* x_251; lean_object* x_252; uint8_t x_253; 
x_251 = lean_io_promise_new();
x_252 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_252);
x_253 = !lean_is_exclusive(x_252);
if (x_253 == 0)
{
lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; 
x_254 = lean_ctor_get(x_1, 0);
x_255 = lean_ctor_get(x_252, 3);
x_256 = lean_ctor_get(x_252, 2);
lean_dec(x_256);
x_257 = lean_ctor_get(x_252, 1);
lean_dec(x_257);
x_258 = lean_ctor_get(x_252, 0);
lean_dec(x_258);
lean_inc(x_251);
x_259 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_259, 0, x_251);
x_260 = lean_box(0);
lean_inc(x_254);
x_261 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_261, 0, x_254);
lean_ctor_set(x_261, 1, x_255);
x_262 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_262, 0, x_261);
x_263 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_263, 0, x_18);
x_264 = l_IO_Promise_result_x21___redArg(x_251);
lean_dec(x_251);
lean_ctor_set(x_252, 3, x_264);
lean_ctor_set(x_252, 2, x_263);
lean_ctor_set(x_252, 1, x_262);
lean_ctor_set(x_252, 0, x_260);
x_265 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_265, 0, x_252);
x_201 = x_246;
x_202 = x_247;
x_203 = x_249;
x_204 = x_259;
x_205 = lean_box(0);
x_206 = x_265;
goto block_245;
}
else
{
lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; 
x_266 = lean_ctor_get(x_1, 0);
x_267 = lean_ctor_get(x_252, 3);
lean_inc(x_267);
lean_dec(x_252);
lean_inc(x_251);
x_268 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_268, 0, x_251);
x_269 = lean_box(0);
lean_inc(x_266);
x_270 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_270, 0, x_266);
lean_ctor_set(x_270, 1, x_267);
x_271 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_271, 0, x_270);
x_272 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_272, 0, x_18);
x_273 = l_IO_Promise_result_x21___redArg(x_251);
lean_dec(x_251);
x_274 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_274, 0, x_269);
lean_ctor_set(x_274, 1, x_271);
lean_ctor_set(x_274, 2, x_272);
lean_ctor_set(x_274, 3, x_273);
x_275 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_275, 0, x_274);
x_201 = x_246;
x_202 = x_247;
x_203 = x_249;
x_204 = x_268;
x_205 = lean_box(0);
x_206 = x_275;
goto block_245;
}
}
else
{
lean_object* x_276; 
lean_dec(x_18);
x_276 = lean_box(0);
x_201 = x_246;
x_202 = x_247;
x_203 = x_249;
x_204 = x_276;
x_205 = lean_box(0);
x_206 = x_276;
goto block_245;
}
}
block_288:
{
lean_object* x_280; 
lean_inc(x_13);
x_280 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f(x_13);
if (lean_obj_tag(x_280) == 0)
{
lean_object* x_281; 
x_281 = lean_box(0);
x_246 = x_278;
x_247 = x_279;
x_248 = x_281;
goto block_277;
}
else
{
uint8_t x_282; 
x_282 = !lean_is_exclusive(x_280);
if (x_282 == 0)
{
lean_object* x_283; lean_object* x_284; 
x_283 = lean_ctor_get(x_280, 0);
lean_inc(x_283);
x_284 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_284, 0, x_283);
lean_ctor_set(x_284, 1, x_283);
lean_ctor_set(x_280, 0, x_284);
x_246 = x_278;
x_247 = x_279;
x_248 = x_280;
goto block_277;
}
else
{
lean_object* x_285; lean_object* x_286; lean_object* x_287; 
x_285 = lean_ctor_get(x_280, 0);
lean_inc(x_285);
lean_dec(x_280);
lean_inc(x_285);
x_286 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_286, 0, x_285);
lean_ctor_set(x_286, 1, x_285);
x_287 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_287, 0, x_286);
x_246 = x_278;
x_247 = x_279;
x_248 = x_287;
goto block_277;
}
}
}
block_292:
{
if (x_289 == 0)
{
lean_inc_ref(x_1);
lean_inc(x_13);
x_278 = x_13;
x_279 = x_1;
goto block_288;
}
else
{
lean_object* x_290; lean_object* x_291; 
x_290 = lean_box(0);
x_291 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__11___closed__0;
x_278 = x_290;
x_279 = x_291;
goto block_288;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__11___boxed(lean_object** _args) {
lean_object* x_1 = _args[0];
lean_object* x_2 = _args[1];
lean_object* x_3 = _args[2];
lean_object* x_4 = _args[3];
lean_object* x_5 = _args[4];
lean_object* x_6 = _args[5];
lean_object* x_7 = _args[6];
lean_object* x_8 = _args[7];
lean_object* x_9 = _args[8];
lean_object* x_10 = _args[9];
lean_object* x_11 = _args[10];
lean_object* x_12 = _args[11];
lean_object* x_13 = _args[12];
lean_object* x_14 = _args[13];
lean_object* x_15 = _args[14];
lean_object* x_16 = _args[15];
lean_object* x_17 = _args[16];
lean_object* x_18 = _args[17];
lean_object* x_19 = _args[18];
_start:
{
uint8_t x_20; uint8_t x_21; lean_object* x_22; 
x_20 = lean_unbox(x_2);
x_21 = lean_unbox(x_5);
x_22 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__11(x_1, x_20, x_3, x_4, x_21, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18);
lean_dec(x_16);
lean_dec(x_6);
return x_22;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Language_Lean_instToSnapshotTreeCommandParsedSnapshot_go), 1, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_5);
lean_dec_ref(x_1);
x_6 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__0;
x_7 = l_Lean_Parser_parseCommand(x_5, x_2, x_3, x_6);
return x_7;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("parsing", 7, 7);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_30; lean_object* x_33; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; uint8_t x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; uint8_t x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; uint8_t x_171; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_211; lean_object* x_212; 
x_98 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__0), 1, 0);
x_99 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__1), 1, 0);
x_100 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__2___boxed), 1, 0);
x_101 = l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__0;
x_102 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__3;
x_211 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__4;
if (lean_obj_tag(x_1) == 1)
{
lean_object* x_245; lean_object* x_246; 
x_245 = lean_ctor_get(x_1, 0);
x_246 = lean_ctor_get(x_245, 4);
if (lean_obj_tag(x_246) == 0)
{
x_212 = lean_box(0);
goto block_244;
}
else
{
lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; 
x_247 = lean_ctor_get(x_245, 0);
x_248 = lean_ctor_get(x_245, 1);
x_249 = lean_ctor_get(x_245, 2);
x_250 = lean_ctor_get(x_245, 3);
x_251 = lean_ctor_get(x_246, 0);
lean_inc(x_251);
x_252 = l_Lean_Language_SnapshotTask_get_x3f___redArg(x_251);
if (lean_obj_tag(x_252) == 1)
{
lean_object* x_253; lean_object* x_254; 
x_253 = lean_ctor_get(x_252, 0);
lean_inc(x_253);
lean_dec_ref(x_252);
x_254 = lean_ctor_get(x_253, 4);
lean_inc(x_254);
lean_dec(x_253);
if (lean_obj_tag(x_254) == 0)
{
x_212 = lean_box(0);
goto block_244;
}
else
{
lean_object* x_255; lean_object* x_256; 
x_255 = lean_ctor_get(x_254, 0);
lean_inc(x_255);
lean_dec_ref(x_254);
x_256 = l_Lean_Language_SnapshotTask_get_x3f___redArg(x_255);
if (lean_obj_tag(x_256) == 1)
{
lean_object* x_257; lean_object* x_258; lean_object* x_259; uint8_t x_260; 
x_257 = lean_ctor_get(x_256, 0);
lean_inc(x_257);
lean_dec_ref(x_256);
x_258 = lean_ctor_get(x_257, 2);
lean_inc_ref(x_258);
lean_dec(x_257);
x_259 = lean_ctor_get(x_258, 0);
lean_inc(x_259);
lean_dec_ref(x_258);
x_260 = l_Lean_Language_Lean_isBeforeEditPos(x_259, x_7);
lean_dec(x_259);
if (x_260 == 0)
{
x_212 = lean_box(0);
goto block_244;
}
else
{
lean_inc(x_251);
lean_inc_ref(x_250);
lean_inc_ref(x_249);
lean_inc(x_248);
lean_inc_ref(x_247);
lean_dec_ref(x_100);
lean_dec_ref(x_99);
lean_dec_ref(x_98);
lean_dec(x_6);
lean_dec_ref(x_3);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
lean_inc_ref(x_249);
x_35 = x_247;
x_36 = x_248;
x_37 = x_249;
x_38 = x_250;
x_39 = x_251;
x_40 = x_249;
x_41 = lean_box(0);
goto block_97;
}
}
else
{
lean_dec(x_256);
x_212 = lean_box(0);
goto block_244;
}
}
}
else
{
lean_dec(x_252);
x_212 = lean_box(0);
goto block_244;
}
}
}
else
{
x_212 = lean_box(0);
goto block_244;
}
block_29:
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_12 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__6;
x_13 = l_Lean_Name_toString(x_12, x_10);
x_14 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__8;
x_15 = lean_box(0);
x_16 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__17;
x_17 = 0;
x_18 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_18, 0, x_13);
lean_ctor_set(x_18, 1, x_14);
lean_ctor_set(x_18, 2, x_15);
lean_ctor_set(x_18, 3, x_16);
lean_ctor_set_uint8(x_18, sizeof(void*)*4, x_17);
x_19 = lean_box(0);
x_20 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__0;
lean_inc_ref(x_18);
x_21 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_21, 0, x_18);
lean_ctor_set(x_21, 1, x_3);
x_22 = l_Lean_Language_SnapshotTask_finished___redArg(x_15, x_21);
lean_inc_ref(x_18);
x_23 = l_Lean_Language_SnapshotTask_finished___redArg(x_15, x_18);
x_24 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__2;
lean_inc_ref(x_18);
x_25 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_25, 0, x_18);
lean_ctor_set(x_25, 1, x_20);
lean_ctor_set(x_25, 2, x_22);
lean_ctor_set(x_25, 3, x_23);
lean_ctor_set(x_25, 4, x_24);
x_26 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_26, 0, x_18);
lean_ctor_set(x_26, 1, x_19);
lean_ctor_set(x_26, 2, x_9);
lean_ctor_set(x_26, 3, x_25);
lean_ctor_set(x_26, 4, x_15);
x_27 = lean_io_promise_resolve(x_26, x_4);
lean_dec(x_4);
x_28 = lean_box(0);
return x_28;
}
block_32:
{
lean_object* x_31; 
x_31 = lean_box(0);
return x_31;
}
block_34:
{
x_30 = lean_box(0);
goto block_32;
}
block_97:
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; 
x_42 = lean_io_promise_new();
x_43 = l_IO_CancelToken_new();
x_44 = lean_ctor_get(x_38, 2);
lean_inc_ref(x_44);
x_45 = !lean_is_exclusive(x_44);
if (x_45 == 0)
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; lean_object* x_54; uint8_t x_55; 
x_46 = lean_ctor_get(x_44, 3);
x_47 = lean_ctor_get(x_44, 2);
lean_dec(x_47);
x_48 = lean_ctor_get(x_44, 1);
lean_dec(x_48);
x_49 = lean_ctor_get(x_44, 0);
lean_dec(x_49);
x_50 = lean_box(x_5);
lean_inc_ref(x_7);
lean_inc(x_43);
lean_inc(x_42);
lean_inc_ref(x_40);
x_51 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__3___boxed), 8, 6);
lean_closure_set(x_51, 0, x_39);
lean_closure_set(x_51, 1, x_40);
lean_closure_set(x_51, 2, x_42);
lean_closure_set(x_51, 3, x_50);
lean_closure_set(x_51, 4, x_43);
lean_closure_set(x_51, 5, x_7);
x_52 = lean_unsigned_to_nat(0u);
x_53 = 1;
x_54 = l_BaseIO_chainTask___redArg(x_46, x_51, x_52, x_53);
x_55 = !lean_is_exclusive(x_7);
if (x_55 == 0)
{
lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; 
x_56 = lean_ctor_get(x_7, 0);
x_57 = lean_ctor_get(x_7, 1);
lean_dec(x_57);
x_58 = lean_ctor_get(x_40, 0);
lean_inc(x_58);
lean_dec_ref(x_40);
x_59 = lean_ctor_get(x_56, 3);
lean_inc(x_59);
lean_dec_ref(x_56);
x_60 = lean_box(0);
lean_ctor_set(x_7, 1, x_59);
lean_ctor_set(x_7, 0, x_58);
x_61 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_61, 0, x_7);
x_62 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_62, 0, x_43);
x_63 = l_IO_Promise_result_x21___redArg(x_42);
lean_dec(x_42);
lean_ctor_set(x_44, 3, x_63);
lean_ctor_set(x_44, 2, x_62);
lean_ctor_set(x_44, 1, x_61);
lean_ctor_set(x_44, 0, x_60);
x_64 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_64, 0, x_44);
x_65 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_65, 0, x_35);
lean_ctor_set(x_65, 1, x_36);
lean_ctor_set(x_65, 2, x_37);
lean_ctor_set(x_65, 3, x_38);
lean_ctor_set(x_65, 4, x_64);
x_66 = lean_io_promise_resolve(x_65, x_4);
lean_dec(x_4);
return x_66;
}
else
{
lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; 
x_67 = lean_ctor_get(x_7, 0);
lean_inc(x_67);
lean_dec(x_7);
x_68 = lean_ctor_get(x_40, 0);
lean_inc(x_68);
lean_dec_ref(x_40);
x_69 = lean_ctor_get(x_67, 3);
lean_inc(x_69);
lean_dec_ref(x_67);
x_70 = lean_box(0);
x_71 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_71, 0, x_68);
lean_ctor_set(x_71, 1, x_69);
x_72 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_72, 0, x_71);
x_73 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_73, 0, x_43);
x_74 = l_IO_Promise_result_x21___redArg(x_42);
lean_dec(x_42);
lean_ctor_set(x_44, 3, x_74);
lean_ctor_set(x_44, 2, x_73);
lean_ctor_set(x_44, 1, x_72);
lean_ctor_set(x_44, 0, x_70);
x_75 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_75, 0, x_44);
x_76 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_76, 0, x_35);
lean_ctor_set(x_76, 1, x_36);
lean_ctor_set(x_76, 2, x_37);
lean_ctor_set(x_76, 3, x_38);
lean_ctor_set(x_76, 4, x_75);
x_77 = lean_io_promise_resolve(x_76, x_4);
lean_dec(x_4);
return x_77;
}
}
else
{
lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; 
x_78 = lean_ctor_get(x_44, 3);
lean_inc(x_78);
lean_dec(x_44);
x_79 = lean_box(x_5);
lean_inc_ref(x_7);
lean_inc(x_43);
lean_inc(x_42);
lean_inc_ref(x_40);
x_80 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__3___boxed), 8, 6);
lean_closure_set(x_80, 0, x_39);
lean_closure_set(x_80, 1, x_40);
lean_closure_set(x_80, 2, x_42);
lean_closure_set(x_80, 3, x_79);
lean_closure_set(x_80, 4, x_43);
lean_closure_set(x_80, 5, x_7);
x_81 = lean_unsigned_to_nat(0u);
x_82 = 1;
x_83 = l_BaseIO_chainTask___redArg(x_78, x_80, x_81, x_82);
x_84 = lean_ctor_get(x_7, 0);
lean_inc_ref(x_84);
if (lean_is_exclusive(x_7)) {
 lean_ctor_release(x_7, 0);
 lean_ctor_release(x_7, 1);
 x_85 = x_7;
} else {
 lean_dec_ref(x_7);
 x_85 = lean_box(0);
}
x_86 = lean_ctor_get(x_40, 0);
lean_inc(x_86);
lean_dec_ref(x_40);
x_87 = lean_ctor_get(x_84, 3);
lean_inc(x_87);
lean_dec_ref(x_84);
x_88 = lean_box(0);
if (lean_is_scalar(x_85)) {
 x_89 = lean_alloc_ctor(0, 2, 0);
} else {
 x_89 = x_85;
}
lean_ctor_set(x_89, 0, x_86);
lean_ctor_set(x_89, 1, x_87);
x_90 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_90, 0, x_89);
x_91 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_91, 0, x_43);
x_92 = l_IO_Promise_result_x21___redArg(x_42);
lean_dec(x_42);
x_93 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_93, 0, x_88);
lean_ctor_set(x_93, 1, x_90);
lean_ctor_set(x_93, 2, x_91);
lean_ctor_set(x_93, 3, x_92);
x_94 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_94, 0, x_93);
x_95 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_95, 0, x_35);
lean_ctor_set(x_95, 1, x_36);
lean_ctor_set(x_95, 2, x_37);
lean_ctor_set(x_95, 3, x_38);
lean_ctor_set(x_95, 4, x_94);
x_96 = lean_io_promise_resolve(x_95, x_4);
lean_dec(x_4);
return x_96;
}
}
block_128:
{
lean_object* x_121; uint8_t x_122; 
x_121 = l_Lean_Language_SnapshotTask_ReportingRange_ofOptionInheriting(x_120);
x_122 = l_Lean_Parser_isTerminalCommand(x_104);
if (x_122 == 0)
{
lean_object* x_123; lean_object* x_124; lean_object* x_125; 
x_123 = lean_io_promise_new();
x_124 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_124, 0, x_123);
x_125 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8(x_121, x_108, x_118, x_111, x_7, x_114, x_107, x_115, x_109, x_110, x_113, x_117, x_4, x_101, x_100, x_99, x_98, x_105, x_116, x_119, x_3, x_102, x_106, x_103, x_1, x_6, x_124);
lean_dec_ref(x_103);
lean_dec(x_106);
lean_dec(x_4);
lean_dec(x_110);
lean_dec(x_108);
x_33 = x_125;
goto block_34;
}
else
{
lean_object* x_126; lean_object* x_127; 
x_126 = lean_box(0);
x_127 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8(x_121, x_108, x_118, x_111, x_7, x_114, x_107, x_115, x_109, x_110, x_113, x_117, x_4, x_101, x_100, x_99, x_98, x_105, x_116, x_119, x_3, x_102, x_106, x_103, x_1, x_6, x_126);
lean_dec_ref(x_103);
lean_dec(x_106);
lean_dec(x_4);
lean_dec(x_110);
lean_dec(x_108);
x_33 = x_127;
goto block_34;
}
}
block_154:
{
lean_object* x_146; 
lean_inc(x_142);
x_146 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f(x_142);
if (lean_obj_tag(x_146) == 0)
{
lean_object* x_147; 
x_147 = lean_box(0);
x_103 = x_129;
x_104 = x_142;
x_105 = x_130;
x_106 = x_131;
x_107 = x_132;
x_108 = x_133;
x_109 = x_134;
x_110 = x_135;
x_111 = x_136;
x_112 = lean_box(0);
x_113 = x_137;
x_114 = x_138;
x_115 = x_144;
x_116 = x_139;
x_117 = x_145;
x_118 = x_140;
x_119 = x_141;
x_120 = x_147;
goto block_128;
}
else
{
uint8_t x_148; 
x_148 = !lean_is_exclusive(x_146);
if (x_148 == 0)
{
lean_object* x_149; lean_object* x_150; 
x_149 = lean_ctor_get(x_146, 0);
lean_inc(x_149);
x_150 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_150, 0, x_149);
lean_ctor_set(x_150, 1, x_149);
lean_ctor_set(x_146, 0, x_150);
x_103 = x_129;
x_104 = x_142;
x_105 = x_130;
x_106 = x_131;
x_107 = x_132;
x_108 = x_133;
x_109 = x_134;
x_110 = x_135;
x_111 = x_136;
x_112 = lean_box(0);
x_113 = x_137;
x_114 = x_138;
x_115 = x_144;
x_116 = x_139;
x_117 = x_145;
x_118 = x_140;
x_119 = x_141;
x_120 = x_146;
goto block_128;
}
else
{
lean_object* x_151; lean_object* x_152; lean_object* x_153; 
x_151 = lean_ctor_get(x_146, 0);
lean_inc(x_151);
lean_dec(x_146);
lean_inc(x_151);
x_152 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_152, 0, x_151);
lean_ctor_set(x_152, 1, x_151);
x_153 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_153, 0, x_152);
x_103 = x_129;
x_104 = x_142;
x_105 = x_130;
x_106 = x_131;
x_107 = x_132;
x_108 = x_133;
x_109 = x_134;
x_110 = x_135;
x_111 = x_136;
x_112 = lean_box(0);
x_113 = x_137;
x_114 = x_138;
x_115 = x_144;
x_116 = x_139;
x_117 = x_145;
x_118 = x_140;
x_119 = x_141;
x_120 = x_153;
goto block_128;
}
}
}
block_174:
{
if (x_171 == 0)
{
lean_inc(x_170);
x_129 = x_155;
x_130 = x_156;
x_131 = x_157;
x_132 = x_158;
x_133 = x_159;
x_134 = x_160;
x_135 = x_161;
x_136 = x_162;
x_137 = x_163;
x_138 = x_164;
x_139 = x_165;
x_140 = x_167;
x_141 = x_166;
x_142 = x_170;
x_143 = lean_box(0);
x_144 = x_170;
x_145 = x_169;
goto block_154;
}
else
{
lean_object* x_172; lean_object* x_173; 
lean_dec_ref(x_169);
x_172 = lean_box(0);
x_173 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__11___closed__0;
x_129 = x_155;
x_130 = x_156;
x_131 = x_157;
x_132 = x_158;
x_133 = x_159;
x_134 = x_160;
x_135 = x_161;
x_136 = x_162;
x_137 = x_163;
x_138 = x_164;
x_139 = x_165;
x_140 = x_167;
x_141 = x_166;
x_142 = x_170;
x_143 = lean_box(0);
x_144 = x_172;
x_145 = x_173;
goto block_154;
}
}
block_210:
{
uint8_t x_185; 
x_185 = l_IO_CancelToken_isSet(x_6);
if (x_185 == 0)
{
uint8_t x_186; 
x_186 = 1;
if (x_5 == 0)
{
lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; uint8_t x_192; 
x_187 = lean_io_promise_new();
x_188 = lean_io_promise_new();
x_189 = lean_io_promise_new();
x_190 = lean_io_promise_new();
x_191 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__3;
x_192 = l_Lean_Option_get___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__1(x_181, x_191);
lean_dec(x_181);
if (x_192 == 0)
{
x_155 = x_191;
x_156 = x_175;
x_157 = x_176;
x_158 = x_186;
x_159 = x_190;
x_160 = x_187;
x_161 = x_188;
x_162 = x_185;
x_163 = x_189;
x_164 = x_179;
x_165 = x_180;
x_166 = x_177;
x_167 = x_178;
x_168 = lean_box(0);
x_169 = x_182;
x_170 = x_183;
x_171 = x_192;
goto block_174;
}
else
{
uint8_t x_193; 
lean_inc(x_183);
x_193 = l_Lean_Parser_isTerminalCommand(x_183);
if (x_193 == 0)
{
x_155 = x_191;
x_156 = x_175;
x_157 = x_176;
x_158 = x_186;
x_159 = x_190;
x_160 = x_187;
x_161 = x_188;
x_162 = x_185;
x_163 = x_189;
x_164 = x_179;
x_165 = x_180;
x_166 = x_177;
x_167 = x_178;
x_168 = lean_box(0);
x_169 = x_182;
x_170 = x_183;
x_171 = x_192;
goto block_174;
}
else
{
lean_inc(x_183);
x_129 = x_191;
x_130 = x_175;
x_131 = x_176;
x_132 = x_186;
x_133 = x_190;
x_134 = x_187;
x_135 = x_188;
x_136 = x_185;
x_137 = x_189;
x_138 = x_179;
x_139 = x_180;
x_140 = x_178;
x_141 = x_177;
x_142 = x_183;
x_143 = lean_box(0);
x_144 = x_183;
x_145 = x_182;
goto block_154;
}
}
}
else
{
lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; 
lean_dec(x_183);
lean_dec_ref(x_182);
lean_dec(x_181);
x_194 = lean_box(x_185);
x_195 = lean_box(x_186);
x_196 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__11___boxed), 19, 18);
lean_closure_set(x_196, 0, x_178);
lean_closure_set(x_196, 1, x_194);
lean_closure_set(x_196, 2, x_7);
lean_closure_set(x_196, 3, x_179);
lean_closure_set(x_196, 4, x_195);
lean_closure_set(x_196, 5, x_4);
lean_closure_set(x_196, 6, x_101);
lean_closure_set(x_196, 7, x_100);
lean_closure_set(x_196, 8, x_99);
lean_closure_set(x_196, 9, x_98);
lean_closure_set(x_196, 10, x_175);
lean_closure_set(x_196, 11, x_180);
lean_closure_set(x_196, 12, x_177);
lean_closure_set(x_196, 13, x_3);
lean_closure_set(x_196, 14, x_102);
lean_closure_set(x_196, 15, x_176);
lean_closure_set(x_196, 16, x_1);
lean_closure_set(x_196, 17, x_6);
x_197 = lean_unsigned_to_nat(0u);
x_198 = lean_io_as_task(x_196, x_197);
lean_dec_ref(x_198);
x_30 = lean_box(0);
goto block_32;
}
}
else
{
lean_dec(x_183);
lean_dec(x_181);
lean_dec(x_180);
lean_dec_ref(x_179);
lean_dec_ref(x_178);
lean_dec(x_177);
lean_dec(x_176);
lean_dec(x_175);
lean_dec_ref(x_100);
lean_dec_ref(x_99);
lean_dec_ref(x_98);
lean_dec_ref(x_7);
lean_dec(x_6);
if (lean_obj_tag(x_1) == 1)
{
lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; uint8_t x_204; 
x_199 = lean_ctor_get(x_1, 0);
lean_inc(x_199);
lean_dec_ref(x_1);
x_200 = l_Lean_Language_Lean_instToSnapshotTreeCommandParsedSnapshot_go(x_199);
x_201 = lean_ctor_get(x_200, 1);
lean_inc_ref(x_201);
lean_dec_ref(x_200);
x_202 = lean_unsigned_to_nat(0u);
x_203 = lean_array_get_size(x_201);
x_204 = lean_nat_dec_lt(x_202, x_203);
if (x_204 == 0)
{
lean_dec(x_203);
lean_dec_ref(x_201);
x_9 = x_182;
x_10 = x_185;
x_11 = lean_box(0);
goto block_29;
}
else
{
uint8_t x_205; 
x_205 = lean_nat_dec_le(x_203, x_203);
if (x_205 == 0)
{
lean_dec(x_203);
lean_dec_ref(x_201);
x_9 = x_182;
x_10 = x_185;
x_11 = lean_box(0);
goto block_29;
}
else
{
lean_object* x_206; size_t x_207; size_t x_208; lean_object* x_209; 
x_206 = lean_box(0);
x_207 = 0;
x_208 = lean_usize_of_nat(x_203);
lean_dec(x_203);
x_209 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__8___redArg(x_201, x_207, x_208, x_206);
lean_dec_ref(x_201);
x_9 = x_182;
x_10 = x_185;
x_11 = lean_box(0);
goto block_29;
}
}
}
else
{
lean_dec(x_1);
x_9 = x_182;
x_10 = x_185;
x_11 = lean_box(0);
goto block_29;
}
}
}
block_244:
{
lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; 
x_213 = lean_ctor_get(x_3, 0);
x_214 = lean_ctor_get(x_3, 2);
x_215 = l_List_head_x21___redArg(x_101, x_214);
x_216 = lean_ctor_get(x_215, 1);
lean_inc(x_216);
x_217 = lean_ctor_get(x_215, 2);
lean_inc(x_217);
x_218 = lean_ctor_get(x_215, 3);
lean_inc(x_218);
lean_dec(x_215);
lean_inc(x_216);
lean_inc_ref(x_213);
x_219 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_219, 0, x_213);
lean_ctor_set(x_219, 1, x_216);
lean_ctor_set(x_219, 2, x_217);
lean_ctor_set(x_219, 3, x_218);
lean_inc_ref(x_2);
lean_inc_ref(x_7);
x_220 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__4), 4, 3);
lean_closure_set(x_220, 0, x_7);
lean_closure_set(x_220, 1, x_219);
lean_closure_set(x_220, 2, x_2);
x_221 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__5;
x_222 = lean_box(0);
x_223 = lean_profileit(x_221, x_216, x_220, x_222);
x_224 = lean_ctor_get(x_223, 1);
lean_inc(x_224);
if (lean_obj_tag(x_1) == 1)
{
lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; uint8_t x_235; 
x_225 = lean_ctor_get(x_1, 0);
x_226 = lean_ctor_get(x_223, 0);
lean_inc(x_226);
lean_dec(x_223);
x_227 = lean_ctor_get(x_224, 0);
lean_inc(x_227);
x_228 = lean_ctor_get(x_224, 1);
lean_inc(x_228);
lean_dec(x_224);
x_229 = lean_ctor_get(x_2, 0);
lean_inc(x_229);
lean_dec_ref(x_2);
x_230 = lean_ctor_get(x_225, 0);
x_231 = lean_ctor_get(x_225, 1);
x_232 = lean_ctor_get(x_225, 2);
x_233 = lean_ctor_get(x_225, 3);
x_234 = lean_ctor_get(x_225, 4);
lean_inc(x_231);
lean_inc(x_226);
x_235 = l_Lean_Syntax_eqWithInfo(x_226, x_231);
if (x_235 == 0)
{
if (lean_obj_tag(x_234) == 0)
{
lean_inc(x_227);
lean_inc(x_226);
lean_inc(x_216);
x_175 = x_222;
x_176 = x_216;
x_177 = x_226;
x_178 = x_227;
x_179 = x_228;
x_180 = x_229;
x_181 = x_216;
x_182 = x_227;
x_183 = x_226;
x_184 = lean_box(0);
goto block_210;
}
else
{
lean_object* x_236; lean_object* x_237; 
x_236 = lean_ctor_get(x_234, 0);
lean_inc(x_236);
x_237 = l_Lean_Language_SnapshotTask_cancelRec___redArg(x_211, x_236);
lean_inc(x_227);
lean_inc(x_226);
lean_inc(x_216);
x_175 = x_222;
x_176 = x_216;
x_177 = x_226;
x_178 = x_227;
x_179 = x_228;
x_180 = x_229;
x_181 = x_216;
x_182 = x_227;
x_183 = x_226;
x_184 = lean_box(0);
goto block_210;
}
}
else
{
lean_dec(x_229);
lean_dec(x_228);
lean_dec(x_226);
lean_inc(x_225);
lean_dec(x_216);
lean_dec_ref(x_100);
lean_dec_ref(x_99);
lean_dec_ref(x_98);
lean_dec(x_6);
lean_dec_ref(x_3);
lean_dec_ref(x_1);
if (lean_obj_tag(x_234) == 1)
{
lean_object* x_238; 
lean_inc_ref(x_234);
lean_inc_ref(x_233);
lean_inc_ref(x_232);
lean_inc(x_231);
lean_inc_ref(x_230);
lean_dec(x_225);
x_238 = lean_ctor_get(x_234, 0);
lean_inc(x_238);
lean_dec_ref(x_234);
x_35 = x_230;
x_36 = x_231;
x_37 = x_232;
x_38 = x_233;
x_39 = x_238;
x_40 = x_227;
x_41 = lean_box(0);
goto block_97;
}
else
{
lean_object* x_239; 
lean_dec(x_227);
lean_dec_ref(x_7);
x_239 = lean_io_promise_resolve(x_225, x_4);
lean_dec(x_4);
return x_239;
}
}
}
else
{
lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; 
x_240 = lean_ctor_get(x_223, 0);
lean_inc(x_240);
lean_dec(x_223);
x_241 = lean_ctor_get(x_224, 0);
lean_inc(x_241);
x_242 = lean_ctor_get(x_224, 1);
lean_inc(x_242);
lean_dec(x_224);
x_243 = lean_ctor_get(x_2, 0);
lean_inc(x_243);
lean_dec_ref(x_2);
lean_inc(x_241);
lean_inc(x_240);
lean_inc(x_216);
x_175 = x_222;
x_176 = x_216;
x_177 = x_240;
x_178 = x_241;
x_179 = x_242;
x_180 = x_243;
x_181 = x_216;
x_182 = x_241;
x_183 = x_240;
x_184 = lean_box(0);
goto block_210;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_9 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_9);
lean_dec_ref(x_1);
x_10 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_10, 0, x_7);
x_11 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd(x_10, x_2, x_9, x_3, x_4, x_5, x_6);
return x_11;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
size_t x_7; size_t x_8; lean_object* x_9; 
x_7 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_8 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_9 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__8(x_1, x_7, x_8, x_4, x_5);
lean_dec_ref(x_5);
lean_dec_ref(x_1);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_get___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Option_get___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__0(x_1, x_2);
lean_dec_ref(x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__8___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
size_t x_6; size_t x_7; lean_object* x_8; 
x_6 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_7 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_8 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__8___redArg(x_1, x_6, x_7, x_4);
lean_dec_ref(x_1);
return x_8;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
uint8_t x_11; size_t x_12; size_t x_13; lean_object* x_14; 
x_11 = lean_unbox(x_4);
x_12 = lean_unbox_usize(x_7);
lean_dec(x_7);
x_13 = lean_unbox_usize(x_8);
lean_dec(x_8);
x_14 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__5(x_1, x_2, x_3, x_11, x_5, x_6, x_12, x_13, x_9);
lean_dec_ref(x_6);
lean_dec(x_2);
return x_14;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1_spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
uint8_t x_11; size_t x_12; size_t x_13; lean_object* x_14; 
x_11 = lean_unbox(x_4);
x_12 = lean_unbox_usize(x_7);
lean_dec(x_7);
x_13 = lean_unbox_usize(x_8);
lean_dec(x_8);
x_14 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1_spec__2(x_1, x_2, x_3, x_11, x_5, x_6, x_12, x_13, x_9);
lean_dec_ref(x_6);
lean_dec(x_2);
return x_14;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__5_spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
uint8_t x_11; size_t x_12; size_t x_13; lean_object* x_14; 
x_11 = lean_unbox(x_4);
x_12 = lean_unbox_usize(x_7);
lean_dec(x_7);
x_13 = lean_unbox_usize(x_8);
lean_dec(x_8);
x_14 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__5_spec__5(x_1, x_2, x_3, x_11, x_5, x_6, x_12, x_13, x_9);
lean_dec_ref(x_6);
lean_dec(x_2);
return x_14;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1_spec__2_spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
uint8_t x_11; size_t x_12; size_t x_13; lean_object* x_14; 
x_11 = lean_unbox(x_4);
x_12 = lean_unbox_usize(x_7);
lean_dec(x_7);
x_13 = lean_unbox_usize(x_8);
lean_dec(x_8);
x_14 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1_spec__2_spec__2(x_1, x_2, x_3, x_11, x_5, x_6, x_12, x_13, x_9);
lean_dec_ref(x_6);
lean_dec(x_2);
return x_14;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
uint8_t x_12; size_t x_13; size_t x_14; lean_object* x_15; 
x_12 = lean_unbox(x_4);
x_13 = lean_unbox_usize(x_8);
lean_dec(x_8);
x_14 = lean_unbox_usize(x_9);
lean_dec(x_9);
x_15 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1_spec__1(x_1, x_2, x_3, x_12, x_5, x_6, x_7, x_13, x_14, x_10);
lean_dec_ref(x_7);
lean_dec_ref(x_5);
lean_dec(x_2);
return x_15;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
uint8_t x_8; lean_object* x_9; 
x_8 = lean_unbox(x_4);
x_9 = l_Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1(x_1, x_2, x_3, x_8, x_5, x_6);
lean_dec(x_2);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
uint8_t x_9; lean_object* x_10; 
x_9 = lean_unbox(x_4);
x_10 = l_Lean_PersistentArray_forInAux___at___00Lean_PersistentArray_forIn___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__1_spec__1(x_1, x_2, x_3, x_9, x_5, x_6, x_7);
lean_dec_ref(x_5);
lean_dec(x_2);
return x_10;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___boxed(lean_object** _args) {
lean_object* x_1 = _args[0];
lean_object* x_2 = _args[1];
lean_object* x_3 = _args[2];
lean_object* x_4 = _args[3];
lean_object* x_5 = _args[4];
lean_object* x_6 = _args[5];
lean_object* x_7 = _args[6];
lean_object* x_8 = _args[7];
lean_object* x_9 = _args[8];
lean_object* x_10 = _args[9];
lean_object* x_11 = _args[10];
lean_object* x_12 = _args[11];
lean_object* x_13 = _args[12];
lean_object* x_14 = _args[13];
lean_object* x_15 = _args[14];
lean_object* x_16 = _args[15];
lean_object* x_17 = _args[16];
lean_object* x_18 = _args[17];
lean_object* x_19 = _args[18];
lean_object* x_20 = _args[19];
lean_object* x_21 = _args[20];
lean_object* x_22 = _args[21];
lean_object* x_23 = _args[22];
lean_object* x_24 = _args[23];
lean_object* x_25 = _args[24];
lean_object* x_26 = _args[25];
lean_object* x_27 = _args[26];
lean_object* x_28 = _args[27];
_start:
{
uint8_t x_29; uint8_t x_30; lean_object* x_31; 
x_29 = lean_unbox(x_4);
x_30 = lean_unbox(x_7);
x_31 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8(x_1, x_2, x_3, x_29, x_5, x_6, x_30, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_26, x_27);
lean_dec_ref(x_24);
lean_dec(x_23);
lean_dec(x_13);
lean_dec(x_10);
lean_dec(x_2);
return x_31;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
uint8_t x_9; lean_object* x_10; 
x_9 = lean_unbox(x_5);
x_10 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd(x_1, x_2, x_3, x_4, x_9, x_6, x_7);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_set___at___00Lean_Option_setIfNotSet___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__2_spec__2(lean_object* x_1, lean_object* x_2, uint8_t x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_4 = lean_ctor_get(x_2, 0);
lean_inc(x_4);
lean_dec_ref(x_2);
x_5 = lean_alloc_ctor(1, 0, 1);
lean_ctor_set_uint8(x_5, 0, x_3);
x_6 = l_Lean_KVMap_insert(x_1, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_setIfNotSet___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__2(lean_object* x_1, lean_object* x_2, uint8_t x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = lean_ctor_get(x_2, 0);
x_5 = l_Lean_KVMap_contains(x_1, x_4);
if (x_5 == 0)
{
lean_object* x_6; 
x_6 = l_Lean_Option_set___at___00Lean_Option_setIfNotSet___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__2_spec__2(x_1, x_2, x_3);
return x_6;
}
else
{
lean_dec_ref(x_2);
return x_1;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Option_get_x3f___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = lean_ctor_get(x_2, 0);
x_4 = l_Lean_KVMap_find(x_1, x_3);
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; 
x_5 = lean_box(0);
return x_5;
}
else
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_4);
if (x_6 == 0)
{
lean_object* x_7; 
x_7 = lean_ctor_get(x_4, 0);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; 
x_8 = lean_ctor_get(x_7, 0);
lean_inc_ref(x_8);
lean_dec_ref(x_7);
lean_ctor_set(x_4, 0, x_8);
return x_4;
}
else
{
lean_object* x_9; 
lean_free_object(x_4);
lean_dec(x_7);
x_9 = lean_box(0);
return x_9;
}
}
else
{
lean_object* x_10; 
x_10 = lean_ctor_get(x_4, 0);
lean_inc(x_10);
lean_dec(x_4);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_11; lean_object* x_12; 
x_11 = lean_ctor_get(x_10, 0);
lean_inc_ref(x_11);
lean_dec_ref(x_10);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
else
{
lean_object* x_13; 
lean_dec(x_10);
x_13 = lean_box(0);
return x_13;
}
}
}
}
}
static lean_object* _init_l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("import", 6, 6);
return x_1;
}
}
static lean_object* _init_l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0___closed__0;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0___closed__2;
x_2 = l_Array_toPArray_x27___redArg(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_3; 
x_3 = l_List_reverse___redArg(x_2);
return x_3;
}
else
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_1);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_5 = lean_ctor_get(x_1, 0);
x_6 = lean_ctor_get(x_1, 1);
x_7 = l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0___closed__1;
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_7);
lean_ctor_set(x_8, 1, x_5);
x_9 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_9, 0, x_8);
x_10 = l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0___closed__3;
x_11 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_11, 0, x_9);
lean_ctor_set(x_11, 1, x_10);
lean_ctor_set(x_1, 1, x_2);
lean_ctor_set(x_1, 0, x_11);
{
lean_object* _tmp_0 = x_6;
lean_object* _tmp_1 = x_1;
x_1 = _tmp_0;
x_2 = _tmp_1;
}
goto _start;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_13 = lean_ctor_get(x_1, 0);
x_14 = lean_ctor_get(x_1, 1);
lean_inc(x_14);
lean_inc(x_13);
lean_dec(x_1);
x_15 = l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0___closed__1;
x_16 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_16, 0, x_15);
lean_ctor_set(x_16, 1, x_13);
x_17 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_17, 0, x_16);
x_18 = l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0___closed__3;
x_19 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_19, 0, x_17);
lean_ctor_set(x_19, 1, x_18);
x_20 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_20, 0, x_19);
lean_ctor_set(x_20, 1, x_2);
x_1 = x_14;
x_2 = x_20;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = l_Lean_Language_instInhabitedSnapshotTask_default___redArg(x_1);
x_4 = lean_box(0);
x_5 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_5, 0, x_2);
lean_ctor_set(x_5, 1, x_3);
lean_ctor_set(x_5, 2, x_4);
return x_5;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("_import", 7, 7);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__0;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(1u);
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__1;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("header", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__3;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(1u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("processHeader", 13, 13);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__6;
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__4;
x_3 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__4;
x_4 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__2;
x_5 = l_Lean_Name_mkStr5(x_4, x_3, x_4, x_2, x_1);
return x_5;
}
}
static double _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__8() {
_start:
{
lean_object* x_1; double x_2; 
x_1 = lean_unsigned_to_nat(1000000000u);
x_2 = lean_float_of_nat(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Import", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__9;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("importing", 9, 9);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__11;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__12;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(1u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__15() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_trace_profiler_output;
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__16() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instInhabitedTraceState_default;
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__17() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__7;
x_3 = l_Lean_Name_toString(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__18() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Language_Lean_experimental_module;
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__19() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("`module` keyword is experimental and not enabled here", 53, 53);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__20() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__19;
x_2 = lean_alloc_ctor(18, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__21() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Init", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__22() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__21;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__23() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Std", 3, 3);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__24() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__23;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__25() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__2;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__26() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lake", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__27() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__26;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__28() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("LakeMain", 8, 8);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__29() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__28;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__30() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__29;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__31() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__30;
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__27;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__32() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__31;
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__25;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__33() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__32;
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__24;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__34() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__33;
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__22;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
_start:
{
uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_149; lean_object* x_150; lean_object* x_151; 
x_149 = lean_ctor_get(x_12, 0);
lean_inc_ref(x_149);
if (lean_is_exclusive(x_12)) {
 lean_ctor_release(x_12, 0);
 lean_ctor_release(x_12, 1);
 x_150 = x_12;
} else {
 lean_dec_ref(x_12);
 x_150 = lean_box(0);
}
lean_inc(x_2);
x_151 = lean_apply_3(x_1, x_2, x_149, lean_box(0));
if (lean_obj_tag(x_151) == 0)
{
lean_object* x_152; lean_object* x_153; 
x_152 = lean_ctor_get(x_151, 0);
lean_inc(x_152);
if (lean_is_exclusive(x_151)) {
 lean_ctor_release(x_151, 0);
 x_153 = x_151;
} else {
 lean_dec_ref(x_151);
 x_153 = lean_box(0);
}
if (lean_obj_tag(x_152) == 0)
{
lean_object* x_154; lean_object* x_155; 
lean_dec(x_150);
lean_dec_ref(x_11);
lean_dec_ref(x_10);
lean_dec_ref(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec_ref(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_154 = lean_ctor_get(x_152, 0);
lean_inc(x_154);
lean_dec_ref(x_152);
if (lean_is_scalar(x_153)) {
 x_155 = lean_alloc_ctor(0, 1, 0);
} else {
 x_155 = x_153;
}
lean_ctor_set(x_155, 0, x_154);
return x_155;
}
else
{
lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; uint8_t x_160; lean_object* x_161; lean_object* x_162; uint32_t x_163; lean_object* x_164; lean_object* x_165; double x_166; double x_167; double x_168; uint8_t x_169; uint8_t x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; double x_176; lean_object* x_191; lean_object* x_192; lean_object* x_247; lean_object* x_248; lean_object* x_256; lean_object* x_257; uint8_t x_258; 
x_156 = lean_ctor_get(x_152, 0);
lean_inc(x_156);
lean_dec_ref(x_152);
x_157 = lean_io_mono_nanos_now();
x_158 = lean_ctor_get(x_156, 0);
lean_inc(x_158);
x_159 = lean_ctor_get(x_156, 1);
lean_inc(x_159);
x_160 = lean_ctor_get_uint8(x_156, sizeof(void*)*6 + 4);
x_161 = lean_ctor_get(x_156, 2);
lean_inc_ref(x_161);
x_162 = lean_ctor_get(x_156, 3);
lean_inc(x_162);
x_163 = lean_ctor_get_uint32(x_156, sizeof(void*)*6);
x_164 = lean_ctor_get(x_156, 4);
lean_inc(x_164);
x_165 = lean_ctor_get(x_156, 5);
lean_inc_ref(x_165);
lean_dec(x_156);
x_166 = lean_float_of_nat(x_157);
x_167 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__8;
x_168 = lean_float_div(x_166, x_167);
x_256 = l_Lean_Name_getRoot(x_158);
x_257 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__34;
x_258 = l_List_elem___redArg(x_11, x_256, x_257);
if (x_258 == 0)
{
lean_inc(x_162);
x_247 = x_162;
x_248 = lean_box(0);
goto block_255;
}
else
{
lean_object* x_259; lean_object* x_260; 
x_259 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__18;
lean_inc(x_162);
x_260 = l_Lean_Option_setIfNotSet___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__2(x_162, x_259, x_258);
x_247 = x_260;
x_248 = lean_box(0);
goto block_255;
}
block_190:
{
uint64_t x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; 
x_177 = 0;
x_178 = lean_box(0);
x_179 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__10;
x_180 = l_panic___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__11___closed__0;
x_181 = lean_alloc_ctor(0, 2, 17);
lean_ctor_set(x_181, 0, x_179);
lean_ctor_set(x_181, 1, x_180);
lean_ctor_set_float(x_181, sizeof(void*)*2, x_168);
lean_ctor_set_float(x_181, sizeof(void*)*2 + 8, x_176);
lean_ctor_set_uint8(x_181, sizeof(void*)*2 + 16, x_169);
x_182 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__13;
x_183 = lean_mk_empty_array_with_capacity(x_3);
x_184 = lean_alloc_ctor(9, 3, 0);
lean_ctor_set(x_184, 0, x_181);
lean_ctor_set(x_184, 1, x_182);
lean_ctor_set(x_184, 2, x_183);
if (lean_is_scalar(x_150)) {
 x_185 = lean_alloc_ctor(0, 2, 0);
} else {
 x_185 = x_150;
}
lean_ctor_set(x_185, 0, x_178);
lean_ctor_set(x_185, 1, x_184);
x_186 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__14;
x_187 = lean_array_push(x_186, x_185);
x_188 = l_Array_toPArray_x27___redArg(x_187);
lean_dec_ref(x_187);
x_189 = lean_alloc_ctor(0, 1, 8);
lean_ctor_set(x_189, 0, x_188);
lean_ctor_set_uint64(x_189, sizeof(void*)*1, x_177);
x_29 = x_169;
x_30 = x_170;
x_31 = x_171;
x_32 = x_174;
x_33 = x_173;
x_34 = x_172;
x_35 = x_189;
x_36 = lean_box(0);
goto block_148;
}
block_246:
{
lean_object* x_193; lean_object* x_194; uint8_t x_195; lean_object* x_196; 
x_193 = l_Lean_Elab_HeaderSyntax_startPos(x_2);
x_194 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__0;
x_195 = 1;
lean_inc(x_162);
x_196 = l_Lean_Elab_processHeaderCore(x_193, x_161, x_160, x_162, x_194, x_9, x_163, x_165, x_195, x_158, x_159, x_164);
lean_dec(x_193);
if (lean_obj_tag(x_196) == 0)
{
uint8_t x_197; 
x_197 = !lean_is_exclusive(x_196);
if (x_197 == 0)
{
lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; uint8_t x_203; 
x_198 = lean_ctor_get(x_196, 0);
x_199 = lean_ctor_get(x_198, 0);
lean_inc(x_199);
x_200 = lean_ctor_get(x_198, 1);
lean_inc(x_200);
lean_dec(x_198);
x_201 = lean_io_mono_nanos_now();
lean_inc(x_200);
x_202 = l_Lean_Language_Snapshot_Diagnostics_ofMessageLog(x_200);
x_203 = l_Lean_MessageLog_hasErrors(x_200);
if (x_203 == 0)
{
double x_204; double x_205; lean_object* x_206; lean_object* x_207; 
lean_free_object(x_196);
lean_dec_ref(x_10);
x_204 = lean_float_of_nat(x_201);
x_205 = lean_float_div(x_204, x_167);
x_206 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__15;
x_207 = l_Lean_Option_get_x3f___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__1(x_162, x_206);
lean_dec(x_162);
if (lean_obj_tag(x_207) == 0)
{
if (x_203 == 0)
{
lean_object* x_208; 
lean_dec(x_150);
x_208 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__16;
x_29 = x_195;
x_30 = x_203;
x_31 = x_202;
x_32 = x_200;
x_33 = x_199;
x_34 = x_191;
x_35 = x_208;
x_36 = lean_box(0);
goto block_148;
}
else
{
x_169 = x_195;
x_170 = x_203;
x_171 = x_202;
x_172 = x_191;
x_173 = x_199;
x_174 = x_200;
x_175 = lean_box(0);
x_176 = x_205;
goto block_190;
}
}
else
{
lean_dec_ref(x_207);
x_169 = x_195;
x_170 = x_203;
x_171 = x_202;
x_172 = x_191;
x_173 = x_199;
x_174 = x_200;
x_175 = lean_box(0);
x_176 = x_205;
goto block_190;
}
}
else
{
lean_object* x_209; lean_object* x_210; uint64_t x_211; lean_object* x_212; lean_object* x_213; size_t x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; 
lean_dec(x_201);
lean_dec(x_200);
lean_dec(x_199);
lean_dec(x_191);
lean_dec(x_162);
lean_dec(x_150);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec_ref(x_5);
lean_dec_ref(x_4);
lean_dec(x_2);
x_209 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__17;
x_210 = lean_box(0);
x_211 = 0;
x_212 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__14;
x_213 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__15;
x_214 = 5;
lean_inc(x_3);
x_215 = lean_alloc_ctor(0, 4, sizeof(size_t)*1);
lean_ctor_set(x_215, 0, x_213);
lean_ctor_set(x_215, 1, x_212);
lean_ctor_set(x_215, 2, x_3);
lean_ctor_set(x_215, 3, x_3);
lean_ctor_set_usize(x_215, 4, x_214);
x_216 = lean_alloc_ctor(0, 1, 8);
lean_ctor_set(x_216, 0, x_215);
lean_ctor_set_uint64(x_216, sizeof(void*)*1, x_211);
x_217 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_217, 0, x_209);
lean_ctor_set(x_217, 1, x_202);
lean_ctor_set(x_217, 2, x_210);
lean_ctor_set(x_217, 3, x_216);
lean_ctor_set_uint8(x_217, sizeof(void*)*4, x_203);
x_218 = l_Lean_Language_instInhabitedSnapshotTask_default___redArg(x_10);
x_219 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_219, 0, x_217);
lean_ctor_set(x_219, 1, x_218);
lean_ctor_set(x_219, 2, x_210);
lean_ctor_set(x_196, 0, x_219);
return x_196;
}
}
else
{
lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; uint8_t x_225; 
x_220 = lean_ctor_get(x_196, 0);
lean_inc(x_220);
lean_dec(x_196);
x_221 = lean_ctor_get(x_220, 0);
lean_inc(x_221);
x_222 = lean_ctor_get(x_220, 1);
lean_inc(x_222);
lean_dec(x_220);
x_223 = lean_io_mono_nanos_now();
lean_inc(x_222);
x_224 = l_Lean_Language_Snapshot_Diagnostics_ofMessageLog(x_222);
x_225 = l_Lean_MessageLog_hasErrors(x_222);
if (x_225 == 0)
{
double x_226; double x_227; lean_object* x_228; lean_object* x_229; 
lean_dec_ref(x_10);
x_226 = lean_float_of_nat(x_223);
x_227 = lean_float_div(x_226, x_167);
x_228 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__15;
x_229 = l_Lean_Option_get_x3f___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__1(x_162, x_228);
lean_dec(x_162);
if (lean_obj_tag(x_229) == 0)
{
if (x_225 == 0)
{
lean_object* x_230; 
lean_dec(x_150);
x_230 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__16;
x_29 = x_195;
x_30 = x_225;
x_31 = x_224;
x_32 = x_222;
x_33 = x_221;
x_34 = x_191;
x_35 = x_230;
x_36 = lean_box(0);
goto block_148;
}
else
{
x_169 = x_195;
x_170 = x_225;
x_171 = x_224;
x_172 = x_191;
x_173 = x_221;
x_174 = x_222;
x_175 = lean_box(0);
x_176 = x_227;
goto block_190;
}
}
else
{
lean_dec_ref(x_229);
x_169 = x_195;
x_170 = x_225;
x_171 = x_224;
x_172 = x_191;
x_173 = x_221;
x_174 = x_222;
x_175 = lean_box(0);
x_176 = x_227;
goto block_190;
}
}
else
{
lean_object* x_231; lean_object* x_232; uint64_t x_233; lean_object* x_234; lean_object* x_235; size_t x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; 
lean_dec(x_223);
lean_dec(x_222);
lean_dec(x_221);
lean_dec(x_191);
lean_dec(x_162);
lean_dec(x_150);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec_ref(x_5);
lean_dec_ref(x_4);
lean_dec(x_2);
x_231 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__17;
x_232 = lean_box(0);
x_233 = 0;
x_234 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__14;
x_235 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__15;
x_236 = 5;
lean_inc(x_3);
x_237 = lean_alloc_ctor(0, 4, sizeof(size_t)*1);
lean_ctor_set(x_237, 0, x_235);
lean_ctor_set(x_237, 1, x_234);
lean_ctor_set(x_237, 2, x_3);
lean_ctor_set(x_237, 3, x_3);
lean_ctor_set_usize(x_237, 4, x_236);
x_238 = lean_alloc_ctor(0, 1, 8);
lean_ctor_set(x_238, 0, x_237);
lean_ctor_set_uint64(x_238, sizeof(void*)*1, x_233);
x_239 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_239, 0, x_231);
lean_ctor_set(x_239, 1, x_224);
lean_ctor_set(x_239, 2, x_232);
lean_ctor_set(x_239, 3, x_238);
lean_ctor_set_uint8(x_239, sizeof(void*)*4, x_225);
x_240 = l_Lean_Language_instInhabitedSnapshotTask_default___redArg(x_10);
x_241 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_241, 0, x_239);
lean_ctor_set(x_241, 1, x_240);
lean_ctor_set(x_241, 2, x_232);
x_242 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_242, 0, x_241);
return x_242;
}
}
}
else
{
uint8_t x_243; 
lean_dec(x_191);
lean_dec(x_162);
lean_dec(x_150);
lean_dec_ref(x_10);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec_ref(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_243 = !lean_is_exclusive(x_196);
if (x_243 == 0)
{
return x_196;
}
else
{
lean_object* x_244; lean_object* x_245; 
x_244 = lean_ctor_get(x_196, 0);
lean_inc(x_244);
lean_dec(x_196);
x_245 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_245, 0, x_244);
return x_245;
}
}
}
block_255:
{
lean_object* x_249; uint8_t x_250; 
x_249 = l_Lean_Syntax_getArg(x_2, x_3);
x_250 = l_Lean_Syntax_isNone(x_249);
lean_dec(x_249);
if (x_250 == 0)
{
lean_object* x_251; uint8_t x_252; 
x_251 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__18;
x_252 = l_Lean_Option_get___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__1(x_247, x_251);
if (x_252 == 0)
{
lean_object* x_253; lean_object* x_254; 
lean_dec(x_247);
lean_dec_ref(x_165);
lean_dec(x_164);
lean_dec(x_162);
lean_dec_ref(x_161);
lean_dec(x_159);
lean_dec(x_158);
lean_dec(x_150);
lean_dec_ref(x_10);
lean_dec_ref(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec_ref(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_253 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__20;
if (lean_is_scalar(x_153)) {
 x_254 = lean_alloc_ctor(1, 1, 0);
} else {
 x_254 = x_153;
 lean_ctor_set_tag(x_254, 1);
}
lean_ctor_set(x_254, 0, x_253);
return x_254;
}
else
{
lean_dec(x_153);
x_191 = x_247;
x_192 = lean_box(0);
goto block_246;
}
}
else
{
lean_dec(x_153);
x_191 = x_247;
x_192 = lean_box(0);
goto block_246;
}
}
}
}
else
{
uint8_t x_261; 
lean_dec(x_150);
lean_dec_ref(x_11);
lean_dec_ref(x_10);
lean_dec_ref(x_9);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec_ref(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_261 = !lean_is_exclusive(x_151);
if (x_261 == 0)
{
return x_151;
}
else
{
lean_object* x_262; lean_object* x_263; 
x_262 = lean_ctor_get(x_151, 0);
lean_inc(x_262);
lean_dec(x_151);
x_263 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_263, 0, x_262);
return x_263;
}
}
block_28:
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_23 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_23, 0, x_22);
x_24 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_24, 0, x_17);
lean_ctor_set(x_24, 1, x_16);
lean_ctor_set(x_24, 2, x_23);
lean_ctor_set(x_24, 3, x_19);
lean_ctor_set_uint8(x_24, sizeof(void*)*4, x_14);
x_25 = l_Lean_Language_SnapshotTask_finished___redArg(x_15, x_24);
x_26 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_26, 0, x_21);
lean_ctor_set(x_26, 1, x_25);
lean_ctor_set(x_26, 2, x_20);
x_27 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_27, 0, x_26);
return x_27;
}
block_148:
{
lean_object* x_37; 
x_37 = l_Lean_Language_Lean_reparseOptions(x_34);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; 
x_38 = lean_ctor_get(x_37, 0);
lean_inc(x_38);
lean_dec_ref(x_37);
x_39 = lean_io_promise_new();
x_40 = l_IO_CancelToken_new();
lean_inc_ref(x_33);
x_41 = l_Lean_Elab_Command_mkState(x_33, x_32, x_38);
x_42 = !lean_is_exclusive(x_41);
if (x_42 == 0)
{
lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint64_t x_73; lean_object* x_74; lean_object* x_75; size_t x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; 
x_43 = lean_ctor_get(x_41, 9);
lean_dec(x_43);
x_44 = lean_ctor_get(x_41, 8);
lean_dec(x_44);
x_45 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__4;
lean_inc_n(x_3, 3);
x_46 = lean_alloc_ctor(0, 9, 0);
lean_ctor_set(x_46, 0, x_3);
lean_ctor_set(x_46, 1, x_3);
lean_ctor_set(x_46, 2, x_3);
lean_ctor_set(x_46, 3, x_45);
lean_ctor_set(x_46, 4, x_45);
lean_ctor_set(x_46, 5, x_45);
lean_ctor_set(x_46, 6, x_45);
lean_ctor_set(x_46, 7, x_45);
lean_ctor_set(x_46, 8, x_45);
x_47 = lean_box(0);
x_48 = lean_box(0);
x_49 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__2;
x_50 = lean_alloc_ctor(0, 7, 0);
lean_ctor_set(x_50, 0, x_33);
lean_ctor_set(x_50, 1, x_4);
lean_ctor_set(x_50, 2, x_46);
lean_ctor_set(x_50, 3, x_47);
lean_ctor_set(x_50, 4, x_48);
lean_ctor_set(x_50, 5, x_47);
lean_ctor_set(x_50, 6, x_49);
x_51 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_51, 0, x_50);
x_52 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__4;
lean_inc(x_2);
x_53 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_53, 0, x_52);
lean_ctor_set(x_53, 1, x_2);
x_54 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_54, 0, x_53);
x_55 = lean_unsigned_to_nat(2u);
x_56 = l_Lean_Syntax_getArg(x_2, x_55);
x_57 = l_Lean_Syntax_getArgs(x_56);
lean_dec(x_56);
x_58 = lean_array_to_list(x_57);
x_59 = l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0(x_58, x_47);
x_60 = l_List_toPArray_x27___redArg(x_59);
x_61 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_61, 0, x_54);
lean_ctor_set(x_61, 1, x_60);
x_62 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_62, 0, x_51);
lean_ctor_set(x_62, 1, x_61);
x_63 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__5;
x_64 = lean_array_push(x_63, x_62);
x_65 = l_Array_toPArray_x27___redArg(x_64);
lean_dec_ref(x_64);
lean_inc_ref(x_65);
x_66 = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(x_66, 0, x_45);
lean_ctor_set(x_66, 1, x_45);
lean_ctor_set(x_66, 2, x_65);
lean_ctor_set_uint8(x_66, sizeof(void*)*3, x_29);
lean_ctor_set(x_41, 9, x_35);
lean_ctor_set(x_41, 8, x_66);
x_67 = lean_box(0);
lean_inc(x_40);
lean_inc(x_39);
lean_inc_ref(x_41);
x_68 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd(x_67, x_5, x_41, x_39, x_29, x_40, x_6);
x_69 = lean_ctor_get(x_65, 2);
lean_inc(x_69);
x_70 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__7;
x_71 = l_Lean_Name_toString(x_70, x_29);
x_72 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__8;
x_73 = 0;
x_74 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__14;
x_75 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__15;
x_76 = 5;
lean_inc_n(x_3, 2);
x_77 = lean_alloc_ctor(0, 4, sizeof(size_t)*1);
lean_ctor_set(x_77, 0, x_75);
lean_ctor_set(x_77, 1, x_74);
lean_ctor_set(x_77, 2, x_3);
lean_ctor_set(x_77, 3, x_3);
lean_ctor_set_usize(x_77, 4, x_76);
x_78 = lean_alloc_ctor(0, 1, 8);
lean_ctor_set(x_78, 0, x_77);
lean_ctor_set_uint64(x_78, sizeof(void*)*1, x_73);
x_79 = l_Lean_Language_SnapshotTask_defaultReportingRange(x_7);
x_80 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_80, 0, x_40);
x_81 = l_IO_Promise_result_x21___redArg(x_39);
lean_dec(x_39);
x_82 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_82, 0, x_7);
lean_ctor_set(x_82, 1, x_79);
lean_ctor_set(x_82, 2, x_80);
lean_ctor_set(x_82, 3, x_81);
x_83 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_83, 0, x_41);
lean_ctor_set(x_83, 1, x_82);
x_84 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_84, 0, x_83);
lean_inc_ref(x_78);
lean_inc_ref(x_71);
x_85 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_85, 0, x_71);
lean_ctor_set(x_85, 1, x_72);
lean_ctor_set(x_85, 2, x_67);
lean_ctor_set(x_85, 3, x_78);
lean_ctor_set_uint8(x_85, sizeof(void*)*4, x_30);
x_86 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_86, 0, x_2);
x_87 = lean_nat_dec_lt(x_3, x_69);
lean_dec(x_69);
if (x_87 == 0)
{
lean_object* x_88; 
lean_dec_ref(x_65);
lean_dec(x_3);
x_88 = l_outOfBounds___redArg(x_8);
x_14 = x_30;
x_15 = x_86;
x_16 = x_31;
x_17 = x_71;
x_18 = lean_box(0);
x_19 = x_78;
x_20 = x_84;
x_21 = x_85;
x_22 = x_88;
goto block_28;
}
else
{
lean_object* x_89; 
x_89 = l_Lean_PersistentArray_get_x21___redArg(x_8, x_65, x_3);
lean_dec(x_3);
x_14 = x_30;
x_15 = x_86;
x_16 = x_31;
x_17 = x_71;
x_18 = lean_box(0);
x_19 = x_78;
x_20 = x_84;
x_21 = x_85;
x_22 = x_89;
goto block_28;
}
}
else
{
lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; uint64_t x_128; lean_object* x_129; lean_object* x_130; size_t x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; uint8_t x_142; 
x_90 = lean_ctor_get(x_41, 0);
x_91 = lean_ctor_get(x_41, 1);
x_92 = lean_ctor_get(x_41, 2);
x_93 = lean_ctor_get(x_41, 3);
x_94 = lean_ctor_get(x_41, 4);
x_95 = lean_ctor_get(x_41, 5);
x_96 = lean_ctor_get(x_41, 6);
x_97 = lean_ctor_get(x_41, 7);
x_98 = lean_ctor_get(x_41, 10);
lean_inc(x_98);
lean_inc(x_97);
lean_inc(x_96);
lean_inc(x_95);
lean_inc(x_94);
lean_inc(x_93);
lean_inc(x_92);
lean_inc(x_91);
lean_inc(x_90);
lean_dec(x_41);
x_99 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__4;
lean_inc_n(x_3, 3);
x_100 = lean_alloc_ctor(0, 9, 0);
lean_ctor_set(x_100, 0, x_3);
lean_ctor_set(x_100, 1, x_3);
lean_ctor_set(x_100, 2, x_3);
lean_ctor_set(x_100, 3, x_99);
lean_ctor_set(x_100, 4, x_99);
lean_ctor_set(x_100, 5, x_99);
lean_ctor_set(x_100, 6, x_99);
lean_ctor_set(x_100, 7, x_99);
lean_ctor_set(x_100, 8, x_99);
x_101 = lean_box(0);
x_102 = lean_box(0);
x_103 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__2;
x_104 = lean_alloc_ctor(0, 7, 0);
lean_ctor_set(x_104, 0, x_33);
lean_ctor_set(x_104, 1, x_4);
lean_ctor_set(x_104, 2, x_100);
lean_ctor_set(x_104, 3, x_101);
lean_ctor_set(x_104, 4, x_102);
lean_ctor_set(x_104, 5, x_101);
lean_ctor_set(x_104, 6, x_103);
x_105 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_105, 0, x_104);
x_106 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__4;
lean_inc(x_2);
x_107 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_107, 0, x_106);
lean_ctor_set(x_107, 1, x_2);
x_108 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_108, 0, x_107);
x_109 = lean_unsigned_to_nat(2u);
x_110 = l_Lean_Syntax_getArg(x_2, x_109);
x_111 = l_Lean_Syntax_getArgs(x_110);
lean_dec(x_110);
x_112 = lean_array_to_list(x_111);
x_113 = l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0(x_112, x_101);
x_114 = l_List_toPArray_x27___redArg(x_113);
x_115 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_115, 0, x_108);
lean_ctor_set(x_115, 1, x_114);
x_116 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_116, 0, x_105);
lean_ctor_set(x_116, 1, x_115);
x_117 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__5;
x_118 = lean_array_push(x_117, x_116);
x_119 = l_Array_toPArray_x27___redArg(x_118);
lean_dec_ref(x_118);
lean_inc_ref(x_119);
x_120 = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(x_120, 0, x_99);
lean_ctor_set(x_120, 1, x_99);
lean_ctor_set(x_120, 2, x_119);
lean_ctor_set_uint8(x_120, sizeof(void*)*3, x_29);
x_121 = lean_alloc_ctor(0, 11, 0);
lean_ctor_set(x_121, 0, x_90);
lean_ctor_set(x_121, 1, x_91);
lean_ctor_set(x_121, 2, x_92);
lean_ctor_set(x_121, 3, x_93);
lean_ctor_set(x_121, 4, x_94);
lean_ctor_set(x_121, 5, x_95);
lean_ctor_set(x_121, 6, x_96);
lean_ctor_set(x_121, 7, x_97);
lean_ctor_set(x_121, 8, x_120);
lean_ctor_set(x_121, 9, x_35);
lean_ctor_set(x_121, 10, x_98);
x_122 = lean_box(0);
lean_inc(x_40);
lean_inc(x_39);
lean_inc_ref(x_121);
x_123 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd(x_122, x_5, x_121, x_39, x_29, x_40, x_6);
x_124 = lean_ctor_get(x_119, 2);
lean_inc(x_124);
x_125 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__7;
x_126 = l_Lean_Name_toString(x_125, x_29);
x_127 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__8;
x_128 = 0;
x_129 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__14;
x_130 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__15;
x_131 = 5;
lean_inc_n(x_3, 2);
x_132 = lean_alloc_ctor(0, 4, sizeof(size_t)*1);
lean_ctor_set(x_132, 0, x_130);
lean_ctor_set(x_132, 1, x_129);
lean_ctor_set(x_132, 2, x_3);
lean_ctor_set(x_132, 3, x_3);
lean_ctor_set_usize(x_132, 4, x_131);
x_133 = lean_alloc_ctor(0, 1, 8);
lean_ctor_set(x_133, 0, x_132);
lean_ctor_set_uint64(x_133, sizeof(void*)*1, x_128);
x_134 = l_Lean_Language_SnapshotTask_defaultReportingRange(x_7);
x_135 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_135, 0, x_40);
x_136 = l_IO_Promise_result_x21___redArg(x_39);
lean_dec(x_39);
x_137 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_137, 0, x_7);
lean_ctor_set(x_137, 1, x_134);
lean_ctor_set(x_137, 2, x_135);
lean_ctor_set(x_137, 3, x_136);
x_138 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_138, 0, x_121);
lean_ctor_set(x_138, 1, x_137);
x_139 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_139, 0, x_138);
lean_inc_ref(x_133);
lean_inc_ref(x_126);
x_140 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_140, 0, x_126);
lean_ctor_set(x_140, 1, x_127);
lean_ctor_set(x_140, 2, x_122);
lean_ctor_set(x_140, 3, x_133);
lean_ctor_set_uint8(x_140, sizeof(void*)*4, x_30);
x_141 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_141, 0, x_2);
x_142 = lean_nat_dec_lt(x_3, x_124);
lean_dec(x_124);
if (x_142 == 0)
{
lean_object* x_143; 
lean_dec_ref(x_119);
lean_dec(x_3);
x_143 = l_outOfBounds___redArg(x_8);
x_14 = x_30;
x_15 = x_141;
x_16 = x_31;
x_17 = x_126;
x_18 = lean_box(0);
x_19 = x_133;
x_20 = x_139;
x_21 = x_140;
x_22 = x_143;
goto block_28;
}
else
{
lean_object* x_144; 
x_144 = l_Lean_PersistentArray_get_x21___redArg(x_8, x_119, x_3);
lean_dec(x_3);
x_14 = x_30;
x_15 = x_141;
x_16 = x_31;
x_17 = x_126;
x_18 = lean_box(0);
x_19 = x_133;
x_20 = x_139;
x_21 = x_140;
x_22 = x_144;
goto block_28;
}
}
}
else
{
uint8_t x_145; 
lean_dec_ref(x_35);
lean_dec_ref(x_33);
lean_dec_ref(x_32);
lean_dec_ref(x_31);
lean_dec_ref(x_8);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec_ref(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_145 = !lean_is_exclusive(x_37);
if (x_145 == 0)
{
return x_37;
}
else
{
lean_object* x_146; lean_object* x_147; 
x_146 = lean_ctor_get(x_37, 0);
lean_inc(x_146);
lean_dec(x_37);
x_147 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_147, 0, x_146);
return x_147;
}
}
}
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Language_instInhabitedSnapshot_default;
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Name_beq___boxed), 2, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
lean_object* x_14; 
x_14 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
return x_14;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_6 = lean_ctor_get(x_4, 0);
x_7 = lean_ctor_get(x_6, 2);
x_8 = lean_ctor_get(x_6, 3);
x_9 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___closed__0;
x_10 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__0), 2, 1);
lean_closure_set(x_10, 0, x_9);
x_11 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___closed__1;
x_12 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__3;
x_13 = lean_box(0);
x_14 = lean_unsigned_to_nat(0u);
lean_inc_ref(x_6);
lean_inc_ref(x_4);
lean_inc_ref(x_7);
x_15 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___boxed), 13, 11);
lean_closure_set(x_15, 0, x_1);
lean_closure_set(x_15, 1, x_2);
lean_closure_set(x_15, 2, x_14);
lean_closure_set(x_15, 3, x_7);
lean_closure_set(x_15, 4, x_3);
lean_closure_set(x_15, 5, x_4);
lean_closure_set(x_15, 6, x_13);
lean_closure_set(x_15, 7, x_12);
lean_closure_set(x_15, 8, x_6);
lean_closure_set(x_15, 9, x_9);
lean_closure_set(x_15, 10, x_11);
lean_inc(x_8);
x_16 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_16, 0, x_14);
lean_ctor_set(x_16, 1, x_8);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_16);
x_18 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___boxed), 5, 4);
lean_closure_set(x_18, 0, lean_box(0));
lean_closure_set(x_18, 1, x_10);
lean_closure_set(x_18, 2, x_15);
lean_closure_set(x_18, 3, x_4);
x_19 = l_Lean_Language_SnapshotTask_ofIO___redArg(x_13, x_13, x_17, x_18);
return x_19;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_set___at___00Lean_Option_setIfNotSet___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__2_spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; 
x_4 = lean_unbox(x_3);
x_5 = l_Lean_Option_set___at___00Lean_Option_setIfNotSet___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__2_spec__2(x_1, x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_setIfNotSet___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; 
x_4 = lean_unbox(x_3);
x_5 = l_Lean_Option_setIfNotSet___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__2(x_1, x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_get_x3f___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__1___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Option_get_x3f___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__1(x_1, x_2);
lean_dec_ref(x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader(x_1, x_2, x_3, x_4);
return x_6;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("parseHeader", 11, 11);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__0;
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__4;
x_3 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__4;
x_4 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__2;
x_5 = l_Lean_Name_mkStr5(x_4, x_3, x_4, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__2() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__1;
x_3 = l_Lean_Name_toString(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(0);
x_2 = l_Lean_Language_SnapshotTask_defaultReportingRange(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__4() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = 0;
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__17;
x_3 = lean_box(0);
x_4 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__8;
x_5 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__2;
x_6 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_6, 0, x_5);
lean_ctor_set(x_6, 1, x_4);
lean_ctor_set(x_6, 2, x_3);
lean_ctor_set(x_6, 3, x_2);
lean_ctor_set_uint8(x_6, sizeof(void*)*4, x_1);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; uint8_t x_13; 
x_8 = lean_io_promise_new();
x_9 = l_IO_CancelToken_new();
x_10 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_10, 0, x_6);
x_11 = 1;
lean_inc(x_9);
lean_inc(x_8);
lean_inc_ref(x_2);
x_12 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd(x_10, x_1, x_2, x_8, x_11, x_9, x_3);
x_13 = !lean_is_exclusive(x_4);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_14 = lean_ctor_get(x_4, 3);
lean_dec(x_14);
x_15 = lean_ctor_get(x_4, 2);
lean_dec(x_15);
x_16 = lean_ctor_get(x_4, 0);
lean_dec(x_16);
x_17 = lean_box(0);
x_18 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__2;
x_19 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__17;
x_20 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__3;
x_21 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_21, 0, x_9);
x_22 = l_IO_Promise_result_x21___redArg(x_8);
lean_dec(x_8);
x_23 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_23, 0, x_17);
lean_ctor_set(x_23, 1, x_20);
lean_ctor_set(x_23, 2, x_21);
lean_ctor_set(x_23, 3, x_22);
x_24 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_24, 0, x_2);
lean_ctor_set(x_24, 1, x_23);
x_25 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_25, 0, x_24);
x_26 = 0;
x_27 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__4;
x_28 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_28, 0, x_5);
lean_ctor_set(x_4, 3, x_19);
lean_ctor_set(x_4, 2, x_17);
lean_ctor_set(x_4, 0, x_18);
lean_ctor_set_uint8(x_4, sizeof(void*)*4, x_26);
x_29 = l_Lean_Language_SnapshotTask_finished___redArg(x_28, x_4);
x_30 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_30, 0, x_27);
lean_ctor_set(x_30, 1, x_29);
lean_ctor_set(x_30, 2, x_25);
x_31 = l_Lean_Language_SnapshotTask_finished___redArg(x_17, x_30);
return x_31;
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; 
x_32 = lean_ctor_get(x_4, 1);
lean_inc(x_32);
lean_dec(x_4);
x_33 = lean_box(0);
x_34 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__2;
x_35 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__17;
x_36 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__3;
x_37 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_37, 0, x_9);
x_38 = l_IO_Promise_result_x21___redArg(x_8);
lean_dec(x_8);
x_39 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_39, 0, x_33);
lean_ctor_set(x_39, 1, x_36);
lean_ctor_set(x_39, 2, x_37);
lean_ctor_set(x_39, 3, x_38);
x_40 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_40, 0, x_2);
lean_ctor_set(x_40, 1, x_39);
x_41 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_41, 0, x_40);
x_42 = 0;
x_43 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__4;
x_44 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_44, 0, x_5);
x_45 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_45, 0, x_34);
lean_ctor_set(x_45, 1, x_32);
lean_ctor_set(x_45, 2, x_33);
lean_ctor_set(x_45, 3, x_35);
lean_ctor_set_uint8(x_45, sizeof(void*)*4, x_42);
x_46 = l_Lean_Language_SnapshotTask_finished___redArg(x_44, x_45);
x_47 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_47, 0, x_43);
lean_ctor_set(x_47, 1, x_46);
lean_ctor_set(x_47, 2, x_41);
x_48 = l_Lean_Language_SnapshotTask_finished___redArg(x_33, x_47);
return x_48;
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0(x_1, x_2, x_3, x_4, x_5, x_6);
return x_8;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_7; 
x_7 = lean_ctor_get(x_5, 2);
if (lean_obj_tag(x_7) == 1)
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; 
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
x_9 = lean_ctor_get(x_8, 1);
lean_inc_ref(x_9);
x_10 = lean_ctor_get(x_5, 0);
lean_inc_ref(x_10);
lean_dec_ref(x_5);
x_11 = lean_ctor_get(x_8, 0);
lean_inc_ref(x_11);
lean_dec(x_8);
x_12 = lean_ctor_get(x_9, 0);
lean_inc(x_12);
x_13 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___boxed), 7, 5);
lean_closure_set(x_13, 0, x_1);
lean_closure_set(x_13, 1, x_11);
lean_closure_set(x_13, 2, x_2);
lean_closure_set(x_13, 3, x_10);
lean_closure_set(x_13, 4, x_3);
x_14 = lean_box(0);
x_15 = 1;
x_16 = l_Lean_Language_SnapshotTask_bindIO___redArg(x_9, x_13, x_12, x_4, x_14, x_15);
return x_16;
}
else
{
lean_object* x_17; lean_object* x_18; 
lean_dec(x_4);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_3);
x_18 = l_Lean_Language_SnapshotTask_finished___redArg(x_17, x_5);
return x_18;
}
}
}
static lean_object* _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__2___closed__0() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = 0;
x_2 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__17;
x_3 = lean_box(0);
x_4 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__8;
x_5 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__2;
x_6 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_6, 0, x_5);
lean_ctor_set(x_6, 1, x_4);
lean_ctor_set(x_6, 2, x_3);
lean_ctor_set(x_6, 3, x_2);
lean_ctor_set_uint8(x_6, sizeof(void*)*4, x_1);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__1(x_1, x_2, x_3, x_4, x_5);
return x_7;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_8; 
x_8 = lean_ctor_get(x_3, 4);
lean_inc(x_8);
if (lean_obj_tag(x_8) == 1)
{
uint8_t x_9; 
x_9 = !lean_is_exclusive(x_8);
if (x_9 == 0)
{
lean_object* x_10; uint8_t x_11; 
x_10 = lean_ctor_get(x_8, 0);
x_11 = !lean_is_exclusive(x_10);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; uint8_t x_14; 
x_12 = lean_ctor_get(x_10, 1);
x_13 = lean_ctor_get(x_10, 0);
lean_dec(x_13);
x_14 = !lean_is_exclusive(x_3);
if (x_14 == 0)
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; uint8_t x_29; 
x_15 = lean_ctor_get(x_3, 0);
x_16 = lean_ctor_get(x_3, 4);
lean_dec(x_16);
x_17 = lean_ctor_get(x_3, 3);
lean_dec(x_17);
x_18 = lean_ctor_get(x_3, 2);
lean_dec(x_18);
x_19 = lean_ctor_get(x_3, 1);
lean_dec(x_19);
x_20 = lean_ctor_get(x_5, 0);
x_21 = lean_ctor_get(x_1, 3);
x_22 = lean_ctor_get(x_12, 0);
lean_inc(x_22);
lean_inc(x_21);
lean_inc(x_20);
x_23 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_23, 0, x_20);
lean_ctor_set(x_23, 1, x_21);
x_24 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_24, 0, x_23);
lean_inc_ref(x_24);
lean_inc(x_4);
lean_inc_ref(x_5);
x_25 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__1___boxed), 6, 4);
lean_closure_set(x_25, 0, x_5);
lean_closure_set(x_25, 1, x_2);
lean_closure_set(x_25, 2, x_4);
lean_closure_set(x_25, 3, x_24);
x_26 = lean_box(0);
x_27 = 1;
x_28 = l_Lean_Language_SnapshotTask_bindIO___redArg(x_12, x_25, x_22, x_24, x_26, x_27);
x_29 = !lean_is_exclusive(x_15);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; 
x_30 = lean_ctor_get(x_15, 3);
lean_dec(x_30);
x_31 = lean_ctor_get(x_15, 2);
lean_dec(x_31);
x_32 = lean_ctor_get(x_15, 0);
lean_dec(x_32);
x_33 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__2;
x_34 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__17;
lean_ctor_set(x_10, 1, x_28);
lean_ctor_set(x_10, 0, x_5);
x_35 = 0;
x_36 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__2___closed__0;
lean_inc(x_4);
x_37 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_37, 0, x_4);
lean_ctor_set(x_15, 3, x_34);
lean_ctor_set(x_15, 2, x_26);
lean_ctor_set(x_15, 0, x_33);
lean_ctor_set_uint8(x_15, sizeof(void*)*4, x_35);
x_38 = l_Lean_Language_SnapshotTask_finished___redArg(x_37, x_15);
lean_ctor_set(x_3, 3, x_4);
lean_ctor_set(x_3, 2, x_1);
lean_ctor_set(x_3, 1, x_38);
lean_ctor_set(x_3, 0, x_36);
return x_3;
}
else
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; 
x_39 = lean_ctor_get(x_15, 1);
lean_inc(x_39);
lean_dec(x_15);
x_40 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__2;
x_41 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__17;
lean_ctor_set(x_10, 1, x_28);
lean_ctor_set(x_10, 0, x_5);
x_42 = 0;
x_43 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__2___closed__0;
lean_inc(x_4);
x_44 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_44, 0, x_4);
x_45 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_45, 0, x_40);
lean_ctor_set(x_45, 1, x_39);
lean_ctor_set(x_45, 2, x_26);
lean_ctor_set(x_45, 3, x_41);
lean_ctor_set_uint8(x_45, sizeof(void*)*4, x_42);
x_46 = l_Lean_Language_SnapshotTask_finished___redArg(x_44, x_45);
lean_ctor_set(x_3, 3, x_4);
lean_ctor_set(x_3, 2, x_1);
lean_ctor_set(x_3, 1, x_46);
lean_ctor_set(x_3, 0, x_43);
return x_3;
}
}
else
{
lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; 
x_47 = lean_ctor_get(x_3, 0);
lean_inc(x_47);
lean_dec(x_3);
x_48 = lean_ctor_get(x_5, 0);
x_49 = lean_ctor_get(x_1, 3);
x_50 = lean_ctor_get(x_12, 0);
lean_inc(x_50);
lean_inc(x_49);
lean_inc(x_48);
x_51 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_51, 0, x_48);
lean_ctor_set(x_51, 1, x_49);
x_52 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_52, 0, x_51);
lean_inc_ref(x_52);
lean_inc(x_4);
lean_inc_ref(x_5);
x_53 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__1___boxed), 6, 4);
lean_closure_set(x_53, 0, x_5);
lean_closure_set(x_53, 1, x_2);
lean_closure_set(x_53, 2, x_4);
lean_closure_set(x_53, 3, x_52);
x_54 = lean_box(0);
x_55 = 1;
x_56 = l_Lean_Language_SnapshotTask_bindIO___redArg(x_12, x_53, x_50, x_52, x_54, x_55);
x_57 = lean_ctor_get(x_47, 1);
lean_inc_ref(x_57);
if (lean_is_exclusive(x_47)) {
 lean_ctor_release(x_47, 0);
 lean_ctor_release(x_47, 1);
 lean_ctor_release(x_47, 2);
 lean_ctor_release(x_47, 3);
 x_58 = x_47;
} else {
 lean_dec_ref(x_47);
 x_58 = lean_box(0);
}
x_59 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__2;
x_60 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__17;
lean_ctor_set(x_10, 1, x_56);
lean_ctor_set(x_10, 0, x_5);
x_61 = 0;
x_62 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__2___closed__0;
lean_inc(x_4);
x_63 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_63, 0, x_4);
if (lean_is_scalar(x_58)) {
 x_64 = lean_alloc_ctor(0, 4, 1);
} else {
 x_64 = x_58;
}
lean_ctor_set(x_64, 0, x_59);
lean_ctor_set(x_64, 1, x_57);
lean_ctor_set(x_64, 2, x_54);
lean_ctor_set(x_64, 3, x_60);
lean_ctor_set_uint8(x_64, sizeof(void*)*4, x_61);
x_65 = l_Lean_Language_SnapshotTask_finished___redArg(x_63, x_64);
x_66 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_66, 0, x_62);
lean_ctor_set(x_66, 1, x_65);
lean_ctor_set(x_66, 2, x_1);
lean_ctor_set(x_66, 3, x_4);
lean_ctor_set(x_66, 4, x_8);
return x_66;
}
}
else
{
lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; 
x_67 = lean_ctor_get(x_10, 1);
lean_inc(x_67);
lean_dec(x_10);
x_68 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_68);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 lean_ctor_release(x_3, 3);
 lean_ctor_release(x_3, 4);
 x_69 = x_3;
} else {
 lean_dec_ref(x_3);
 x_69 = lean_box(0);
}
x_70 = lean_ctor_get(x_5, 0);
x_71 = lean_ctor_get(x_1, 3);
x_72 = lean_ctor_get(x_67, 0);
lean_inc(x_72);
lean_inc(x_71);
lean_inc(x_70);
x_73 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_73, 0, x_70);
lean_ctor_set(x_73, 1, x_71);
x_74 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_74, 0, x_73);
lean_inc_ref(x_74);
lean_inc(x_4);
lean_inc_ref(x_5);
x_75 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__1___boxed), 6, 4);
lean_closure_set(x_75, 0, x_5);
lean_closure_set(x_75, 1, x_2);
lean_closure_set(x_75, 2, x_4);
lean_closure_set(x_75, 3, x_74);
x_76 = lean_box(0);
x_77 = 1;
x_78 = l_Lean_Language_SnapshotTask_bindIO___redArg(x_67, x_75, x_72, x_74, x_76, x_77);
x_79 = lean_ctor_get(x_68, 1);
lean_inc_ref(x_79);
if (lean_is_exclusive(x_68)) {
 lean_ctor_release(x_68, 0);
 lean_ctor_release(x_68, 1);
 lean_ctor_release(x_68, 2);
 lean_ctor_release(x_68, 3);
 x_80 = x_68;
} else {
 lean_dec_ref(x_68);
 x_80 = lean_box(0);
}
x_81 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__2;
x_82 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__17;
x_83 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_83, 0, x_5);
lean_ctor_set(x_83, 1, x_78);
lean_ctor_set(x_8, 0, x_83);
x_84 = 0;
x_85 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__2___closed__0;
lean_inc(x_4);
x_86 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_86, 0, x_4);
if (lean_is_scalar(x_80)) {
 x_87 = lean_alloc_ctor(0, 4, 1);
} else {
 x_87 = x_80;
}
lean_ctor_set(x_87, 0, x_81);
lean_ctor_set(x_87, 1, x_79);
lean_ctor_set(x_87, 2, x_76);
lean_ctor_set(x_87, 3, x_82);
lean_ctor_set_uint8(x_87, sizeof(void*)*4, x_84);
x_88 = l_Lean_Language_SnapshotTask_finished___redArg(x_86, x_87);
if (lean_is_scalar(x_69)) {
 x_89 = lean_alloc_ctor(0, 5, 0);
} else {
 x_89 = x_69;
}
lean_ctor_set(x_89, 0, x_85);
lean_ctor_set(x_89, 1, x_88);
lean_ctor_set(x_89, 2, x_1);
lean_ctor_set(x_89, 3, x_4);
lean_ctor_set(x_89, 4, x_8);
return x_89;
}
}
else
{
lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; 
x_90 = lean_ctor_get(x_8, 0);
lean_inc(x_90);
lean_dec(x_8);
x_91 = lean_ctor_get(x_90, 1);
lean_inc_ref(x_91);
if (lean_is_exclusive(x_90)) {
 lean_ctor_release(x_90, 0);
 lean_ctor_release(x_90, 1);
 x_92 = x_90;
} else {
 lean_dec_ref(x_90);
 x_92 = lean_box(0);
}
x_93 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_93);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 lean_ctor_release(x_3, 3);
 lean_ctor_release(x_3, 4);
 x_94 = x_3;
} else {
 lean_dec_ref(x_3);
 x_94 = lean_box(0);
}
x_95 = lean_ctor_get(x_5, 0);
x_96 = lean_ctor_get(x_1, 3);
x_97 = lean_ctor_get(x_91, 0);
lean_inc(x_97);
lean_inc(x_96);
lean_inc(x_95);
x_98 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_98, 0, x_95);
lean_ctor_set(x_98, 1, x_96);
x_99 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_99, 0, x_98);
lean_inc_ref(x_99);
lean_inc(x_4);
lean_inc_ref(x_5);
x_100 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__1___boxed), 6, 4);
lean_closure_set(x_100, 0, x_5);
lean_closure_set(x_100, 1, x_2);
lean_closure_set(x_100, 2, x_4);
lean_closure_set(x_100, 3, x_99);
x_101 = lean_box(0);
x_102 = 1;
x_103 = l_Lean_Language_SnapshotTask_bindIO___redArg(x_91, x_100, x_97, x_99, x_101, x_102);
x_104 = lean_ctor_get(x_93, 1);
lean_inc_ref(x_104);
if (lean_is_exclusive(x_93)) {
 lean_ctor_release(x_93, 0);
 lean_ctor_release(x_93, 1);
 lean_ctor_release(x_93, 2);
 lean_ctor_release(x_93, 3);
 x_105 = x_93;
} else {
 lean_dec_ref(x_93);
 x_105 = lean_box(0);
}
x_106 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__2;
x_107 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__17;
if (lean_is_scalar(x_92)) {
 x_108 = lean_alloc_ctor(0, 2, 0);
} else {
 x_108 = x_92;
}
lean_ctor_set(x_108, 0, x_5);
lean_ctor_set(x_108, 1, x_103);
x_109 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_109, 0, x_108);
x_110 = 0;
x_111 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__2___closed__0;
lean_inc(x_4);
x_112 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_112, 0, x_4);
if (lean_is_scalar(x_105)) {
 x_113 = lean_alloc_ctor(0, 4, 1);
} else {
 x_113 = x_105;
}
lean_ctor_set(x_113, 0, x_106);
lean_ctor_set(x_113, 1, x_104);
lean_ctor_set(x_113, 2, x_101);
lean_ctor_set(x_113, 3, x_107);
lean_ctor_set_uint8(x_113, sizeof(void*)*4, x_110);
x_114 = l_Lean_Language_SnapshotTask_finished___redArg(x_112, x_113);
if (lean_is_scalar(x_94)) {
 x_115 = lean_alloc_ctor(0, 5, 0);
} else {
 x_115 = x_94;
}
lean_ctor_set(x_115, 0, x_111);
lean_ctor_set(x_115, 1, x_114);
lean_ctor_set(x_115, 2, x_1);
lean_ctor_set(x_115, 3, x_4);
lean_ctor_set(x_115, 4, x_109);
return x_115;
}
}
else
{
lean_dec(x_8);
lean_dec_ref(x_5);
lean_dec(x_4);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_8; 
lean_inc_ref(x_1);
x_8 = l_Lean_Parser_parseHeader(x_1);
if (lean_obj_tag(x_8) == 0)
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 
x_9 = lean_ctor_get(x_8, 0);
lean_inc(x_9);
if (lean_is_exclusive(x_8)) {
 lean_ctor_release(x_8, 0);
 x_10 = x_8;
} else {
 lean_dec_ref(x_8);
 x_10 = lean_box(0);
}
x_11 = lean_ctor_get(x_9, 1);
lean_inc(x_11);
x_12 = lean_ctor_get(x_9, 0);
lean_inc(x_12);
lean_dec(x_9);
x_13 = lean_ctor_get(x_11, 0);
lean_inc(x_13);
x_14 = lean_ctor_get(x_11, 1);
lean_inc(x_14);
if (lean_is_exclusive(x_11)) {
 lean_ctor_release(x_11, 0);
 lean_ctor_release(x_11, 1);
 x_15 = x_11;
} else {
 lean_dec_ref(x_11);
 x_15 = lean_box(0);
}
x_16 = l_Lean_MessageLog_hasErrors(x_14);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; 
lean_inc(x_12);
x_17 = l_Lean_Syntax_unsetTrailing(x_12);
if (lean_obj_tag(x_3) == 1)
{
uint8_t x_35; 
x_35 = !lean_is_exclusive(x_3);
if (x_35 == 0)
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; 
x_36 = lean_ctor_get(x_3, 0);
x_37 = lean_ctor_get(x_36, 3);
x_38 = lean_ctor_get(x_36, 4);
lean_inc(x_37);
x_39 = l_Lean_Syntax_unsetTrailing(x_37);
lean_inc(x_17);
x_40 = l_Lean_Syntax_eqWithInfo(x_17, x_39);
if (x_40 == 0)
{
lean_inc(x_38);
lean_free_object(x_3);
lean_dec(x_36);
lean_dec_ref(x_5);
if (lean_obj_tag(x_38) == 0)
{
lean_dec_ref(x_4);
x_18 = x_6;
x_19 = lean_box(0);
goto block_34;
}
else
{
lean_object* x_41; lean_object* x_42; lean_object* x_43; 
x_41 = lean_ctor_get(x_38, 0);
lean_inc(x_41);
lean_dec_ref(x_38);
x_42 = lean_ctor_get(x_41, 1);
lean_inc_ref(x_42);
lean_dec(x_41);
x_43 = l_Lean_Language_SnapshotTask_cancelRec___redArg(x_4, x_42);
x_18 = x_6;
x_19 = lean_box(0);
goto block_34;
}
}
else
{
lean_object* x_44; 
lean_dec(x_17);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec_ref(x_4);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_44 = lean_apply_5(x_5, x_36, x_12, x_13, x_6, lean_box(0));
lean_ctor_set_tag(x_3, 0);
lean_ctor_set(x_3, 0, x_44);
return x_3;
}
}
else
{
lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; 
x_45 = lean_ctor_get(x_3, 0);
lean_inc(x_45);
lean_dec(x_3);
x_46 = lean_ctor_get(x_45, 3);
x_47 = lean_ctor_get(x_45, 4);
lean_inc(x_46);
x_48 = l_Lean_Syntax_unsetTrailing(x_46);
lean_inc(x_17);
x_49 = l_Lean_Syntax_eqWithInfo(x_17, x_48);
if (x_49 == 0)
{
lean_inc(x_47);
lean_dec(x_45);
lean_dec_ref(x_5);
if (lean_obj_tag(x_47) == 0)
{
lean_dec_ref(x_4);
x_18 = x_6;
x_19 = lean_box(0);
goto block_34;
}
else
{
lean_object* x_50; lean_object* x_51; lean_object* x_52; 
x_50 = lean_ctor_get(x_47, 0);
lean_inc(x_50);
lean_dec_ref(x_47);
x_51 = lean_ctor_get(x_50, 1);
lean_inc_ref(x_51);
lean_dec(x_50);
x_52 = l_Lean_Language_SnapshotTask_cancelRec___redArg(x_4, x_51);
x_18 = x_6;
x_19 = lean_box(0);
goto block_34;
}
}
else
{
lean_object* x_53; lean_object* x_54; 
lean_dec(x_17);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec_ref(x_4);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_53 = lean_apply_5(x_5, x_45, x_12, x_13, x_6, lean_box(0));
x_54 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_54, 0, x_53);
return x_54;
}
}
}
else
{
lean_dec_ref(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
x_18 = x_6;
x_19 = lean_box(0);
goto block_34;
}
block_34:
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_20 = l_Lean_Language_Snapshot_Diagnostics_ofMessageLog(x_14);
lean_inc(x_13);
x_21 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader(x_2, x_17, x_13, x_18);
x_22 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__2;
x_23 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__8;
x_24 = lean_box(0);
x_25 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__17;
if (lean_is_scalar(x_15)) {
 x_26 = lean_alloc_ctor(0, 2, 0);
} else {
 x_26 = x_15;
}
lean_ctor_set(x_26, 0, x_13);
lean_ctor_set(x_26, 1, x_21);
x_27 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_27, 0, x_26);
x_28 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_28, 0, x_22);
lean_ctor_set(x_28, 1, x_23);
lean_ctor_set(x_28, 2, x_24);
lean_ctor_set(x_28, 3, x_25);
lean_ctor_set_uint8(x_28, sizeof(void*)*4, x_16);
lean_inc(x_12);
x_29 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_29, 0, x_12);
x_30 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_30, 0, x_22);
lean_ctor_set(x_30, 1, x_20);
lean_ctor_set(x_30, 2, x_24);
lean_ctor_set(x_30, 3, x_25);
lean_ctor_set_uint8(x_30, sizeof(void*)*4, x_16);
x_31 = l_Lean_Language_SnapshotTask_finished___redArg(x_29, x_30);
x_32 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_32, 0, x_28);
lean_ctor_set(x_32, 1, x_31);
lean_ctor_set(x_32, 2, x_1);
lean_ctor_set(x_32, 3, x_12);
lean_ctor_set(x_32, 4, x_27);
if (lean_is_scalar(x_10)) {
 x_33 = lean_alloc_ctor(0, 1, 0);
} else {
 x_33 = x_10;
}
lean_ctor_set(x_33, 0, x_32);
return x_33;
}
}
else
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; 
lean_dec(x_15);
lean_dec(x_13);
lean_dec_ref(x_6);
lean_dec_ref(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec_ref(x_2);
x_55 = l_Lean_Language_Snapshot_Diagnostics_ofMessageLog(x_14);
x_56 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__1;
x_57 = l_Lean_Name_toString(x_56, x_16);
x_58 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__8;
x_59 = lean_box(0);
x_60 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__17;
lean_inc_ref(x_57);
x_61 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_61, 0, x_57);
lean_ctor_set(x_61, 1, x_58);
lean_ctor_set(x_61, 2, x_59);
lean_ctor_set(x_61, 3, x_60);
lean_ctor_set_uint8(x_61, sizeof(void*)*4, x_16);
lean_inc(x_12);
x_62 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_62, 0, x_12);
x_63 = 0;
x_64 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_64, 0, x_57);
lean_ctor_set(x_64, 1, x_55);
lean_ctor_set(x_64, 2, x_59);
lean_ctor_set(x_64, 3, x_60);
lean_ctor_set_uint8(x_64, sizeof(void*)*4, x_63);
x_65 = l_Lean_Language_SnapshotTask_finished___redArg(x_62, x_64);
x_66 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_66, 0, x_61);
lean_ctor_set(x_66, 1, x_65);
lean_ctor_set(x_66, 2, x_1);
lean_ctor_set(x_66, 3, x_12);
lean_ctor_set(x_66, 4, x_59);
if (lean_is_scalar(x_10)) {
 x_67 = lean_alloc_ctor(0, 1, 0);
} else {
 x_67 = x_10;
}
lean_ctor_set(x_67, 0, x_66);
return x_67;
}
}
else
{
uint8_t x_68; 
lean_dec_ref(x_6);
lean_dec_ref(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_68 = !lean_is_exclusive(x_8);
if (x_68 == 0)
{
return x_8;
}
else
{
lean_object* x_69; lean_object* x_70; 
x_69 = lean_ctor_get(x_8, 0);
lean_inc(x_69);
lean_dec(x_8);
x_70 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_70, 0, x_69);
return x_70;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_4 = l_Lean_Language_instInhabitedSnapshotTask_default___redArg(x_1);
x_5 = lean_box(0);
x_6 = lean_box(0);
x_7 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_7, 0, x_3);
lean_ctor_set(x_7, 1, x_4);
lean_ctor_set(x_7, 2, x_2);
lean_ctor_set(x_7, 3, x_5);
lean_ctor_set(x_7, 4, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__2(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec_ref(x_6);
return x_8;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__3(x_1, x_2, x_3, x_4, x_5, x_6);
return x_8;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___closed__0;
x_7 = l_Lean_Language_Lean_instToSnapshotTreeHeaderProcessedSnapshot;
lean_inc_ref(x_3);
lean_inc_ref(x_5);
x_8 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__2___boxed), 7, 2);
lean_closure_set(x_8, 0, x_5);
lean_closure_set(x_8, 1, x_3);
lean_inc(x_2);
lean_inc_ref(x_5);
x_9 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__3___boxed), 7, 5);
lean_closure_set(x_9, 0, x_5);
lean_closure_set(x_9, 1, x_1);
lean_closure_set(x_9, 2, x_2);
lean_closure_set(x_9, 3, x_7);
lean_closure_set(x_9, 4, x_8);
lean_inc_ref(x_5);
x_10 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__4), 3, 2);
lean_closure_set(x_10, 0, x_6);
lean_closure_set(x_10, 1, x_5);
if (lean_obj_tag(x_2) == 1)
{
lean_object* x_11; lean_object* x_12; 
x_11 = lean_ctor_get(x_2, 0);
lean_inc(x_11);
lean_dec_ref(x_2);
x_12 = lean_ctor_get(x_11, 4);
if (lean_obj_tag(x_12) == 1)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_13 = lean_ctor_get(x_11, 3);
lean_inc(x_13);
x_14 = lean_ctor_get(x_12, 0);
lean_inc(x_11);
x_15 = l_Lean_Language_Lean_HeaderParsedSnapshot_processedResult(x_11);
x_16 = l_Lean_Language_SnapshotTask_get_x3f___redArg(x_15);
if (lean_obj_tag(x_16) == 1)
{
lean_object* x_17; 
x_17 = lean_ctor_get(x_16, 0);
lean_inc(x_17);
lean_dec_ref(x_16);
if (lean_obj_tag(x_17) == 1)
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_18 = lean_ctor_get(x_17, 0);
lean_inc(x_18);
lean_dec_ref(x_17);
x_19 = lean_ctor_get(x_18, 1);
lean_inc_ref(x_19);
lean_dec(x_18);
x_20 = l_Lean_Language_SnapshotTask_get_x3f___redArg(x_19);
if (lean_obj_tag(x_20) == 1)
{
lean_object* x_21; lean_object* x_22; 
x_21 = lean_ctor_get(x_20, 0);
lean_inc(x_21);
lean_dec_ref(x_20);
x_22 = lean_ctor_get(x_21, 4);
lean_inc(x_22);
lean_dec(x_21);
if (lean_obj_tag(x_22) == 0)
{
lean_object* x_23; 
lean_dec(x_13);
lean_dec(x_11);
x_23 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg(x_10, x_9, x_3);
return x_23;
}
else
{
lean_object* x_24; lean_object* x_25; 
x_24 = lean_ctor_get(x_22, 0);
lean_inc(x_24);
lean_dec_ref(x_22);
x_25 = l_Lean_Language_SnapshotTask_get_x3f___redArg(x_24);
if (lean_obj_tag(x_25) == 1)
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; 
x_26 = lean_ctor_get(x_25, 0);
lean_inc(x_26);
lean_dec_ref(x_25);
x_27 = lean_ctor_get(x_26, 2);
lean_inc_ref(x_27);
lean_dec(x_26);
x_28 = lean_ctor_get(x_27, 0);
lean_inc(x_28);
lean_dec_ref(x_27);
x_29 = l_Lean_Language_Lean_isBeforeEditPos(x_28, x_3);
lean_dec(x_28);
if (x_29 == 0)
{
lean_object* x_30; 
lean_dec(x_13);
lean_dec(x_11);
x_30 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg(x_10, x_9, x_3);
return x_30;
}
else
{
lean_object* x_31; lean_object* x_32; 
lean_dec_ref(x_10);
lean_dec_ref(x_9);
lean_inc_ref(x_5);
x_31 = lean_ctor_get(x_14, 0);
lean_inc_ref(x_31);
lean_inc_ref(x_3);
x_32 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__2(x_5, x_3, x_11, x_13, x_31, x_3);
lean_dec_ref(x_3);
return x_32;
}
}
else
{
lean_object* x_33; 
lean_dec(x_25);
lean_dec(x_13);
lean_dec(x_11);
x_33 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg(x_10, x_9, x_3);
return x_33;
}
}
}
else
{
lean_object* x_34; 
lean_dec(x_20);
lean_dec(x_13);
lean_dec(x_11);
x_34 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg(x_10, x_9, x_3);
return x_34;
}
}
else
{
lean_object* x_35; 
lean_dec(x_17);
lean_dec(x_13);
lean_dec(x_11);
x_35 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg(x_10, x_9, x_3);
return x_35;
}
}
else
{
lean_object* x_36; 
lean_dec(x_16);
lean_dec(x_13);
lean_dec(x_11);
x_36 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg(x_10, x_9, x_3);
return x_36;
}
}
else
{
lean_object* x_37; 
lean_dec(x_11);
x_37 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg(x_10, x_9, x_3);
return x_37;
}
}
else
{
lean_object* x_38; 
lean_dec(x_2);
x_38 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg(x_10, x_9, x_3);
return x_38;
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader(x_1, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Language_Lean_process(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; 
lean_inc(x_2);
x_5 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___boxed), 4, 2);
lean_closure_set(x_5, 0, x_1);
lean_closure_set(x_5, 1, x_2);
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_6; lean_object* x_7; 
x_6 = lean_box(0);
x_7 = l_Lean_Language_Lean_LeanProcessingM_run___redArg(x_5, x_6, x_3);
return x_7;
}
else
{
uint8_t x_8; 
x_8 = !lean_is_exclusive(x_2);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_9 = lean_ctor_get(x_2, 0);
x_10 = lean_ctor_get(x_9, 2);
lean_inc_ref(x_10);
lean_dec(x_9);
lean_ctor_set(x_2, 0, x_10);
x_11 = l_Lean_Language_Lean_LeanProcessingM_run___redArg(x_5, x_2, x_3);
return x_11;
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_12 = lean_ctor_get(x_2, 0);
lean_inc(x_12);
lean_dec(x_2);
x_13 = lean_ctor_get(x_12, 2);
lean_inc_ref(x_13);
lean_dec(x_12);
x_14 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_14, 0, x_13);
x_15 = l_Lean_Language_Lean_LeanProcessingM_run___redArg(x_5, x_14, x_3);
return x_15;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Language_Lean_process___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Language_Lean_process(x_1, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Language_Lean_processCommands(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_13; 
x_6 = lean_io_promise_new();
x_7 = l_IO_CancelToken_new();
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_25; 
x_25 = lean_box(0);
x_13 = x_25;
goto block_24;
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_26 = lean_ctor_get(x_4, 0);
x_27 = lean_ctor_get(x_26, 1);
lean_inc(x_27);
x_28 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_28, 0, x_27);
x_13 = x_28;
goto block_24;
}
block_12:
{
lean_object* x_10; lean_object* x_11; 
x_10 = l_Lean_Language_Lean_LeanProcessingM_run___redArg(x_8, x_9, x_1);
lean_dec(x_10);
x_11 = l_IO_Promise_result_x21___redArg(x_6);
lean_dec(x_6);
return x_11;
}
block_24:
{
uint8_t x_14; lean_object* x_15; lean_object* x_16; 
x_14 = 1;
x_15 = lean_box(x_14);
lean_inc(x_6);
x_16 = lean_alloc_closure((void*)(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___boxed), 8, 6);
lean_closure_set(x_16, 0, x_13);
lean_closure_set(x_16, 1, x_2);
lean_closure_set(x_16, 2, x_3);
lean_closure_set(x_16, 3, x_6);
lean_closure_set(x_16, 4, x_15);
lean_closure_set(x_16, 5, x_7);
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_17; 
x_17 = lean_box(0);
x_8 = x_16;
x_9 = x_17;
goto block_12;
}
else
{
uint8_t x_18; 
x_18 = !lean_is_exclusive(x_4);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; 
x_19 = lean_ctor_get(x_4, 0);
x_20 = lean_ctor_get(x_19, 0);
lean_inc(x_20);
lean_dec(x_19);
lean_ctor_set(x_4, 0, x_20);
x_8 = x_16;
x_9 = x_4;
goto block_12;
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; 
x_21 = lean_ctor_get(x_4, 0);
lean_inc(x_21);
lean_dec(x_4);
x_22 = lean_ctor_get(x_21, 0);
lean_inc(x_22);
lean_dec(x_21);
x_23 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_23, 0, x_22);
x_8 = x_16;
x_9 = x_23;
goto block_12;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Language_Lean_processCommands___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Language_Lean_processCommands(x_1, x_2, x_3, x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_waitForFinalCmdState_x3f_goCmd(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_ctor_get(x_1, 4);
if (lean_obj_tag(x_2) == 1)
{
lean_object* x_3; lean_object* x_4; 
lean_inc_ref(x_2);
lean_dec_ref(x_1);
x_3 = lean_ctor_get(x_2, 0);
lean_inc(x_3);
lean_dec_ref(x_2);
x_4 = l_Lean_Language_SnapshotTask_get___redArg(x_3);
x_1 = x_4;
goto _start;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_6 = lean_ctor_get(x_1, 3);
lean_inc_ref(x_6);
lean_dec_ref(x_1);
x_7 = lean_ctor_get(x_6, 2);
lean_inc_ref(x_7);
lean_dec_ref(x_6);
x_8 = l_Lean_Language_SnapshotTask_get___redArg(x_7);
x_9 = lean_ctor_get(x_8, 1);
lean_inc_ref(x_9);
lean_dec(x_8);
x_10 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_10, 0, x_9);
return x_10;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Language_Lean_waitForFinalCmdState_x3f(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_ctor_get(x_1, 4);
lean_inc(x_2);
lean_dec_ref(x_1);
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; 
x_3 = lean_box(0);
return x_3;
}
else
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_4 = lean_ctor_get(x_2, 0);
lean_inc(x_4);
lean_dec_ref(x_2);
x_5 = lean_ctor_get(x_4, 1);
lean_inc_ref(x_5);
lean_dec(x_4);
x_6 = l_Lean_Language_SnapshotTask_get___redArg(x_5);
x_7 = lean_ctor_get(x_6, 2);
lean_inc(x_7);
lean_dec(x_6);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; 
x_8 = lean_box(0);
return x_8;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_9 = lean_ctor_get(x_7, 0);
lean_inc(x_9);
lean_dec_ref(x_7);
x_10 = lean_ctor_get(x_9, 1);
lean_inc_ref(x_10);
lean_dec(x_9);
x_11 = l_Lean_Language_SnapshotTask_get___redArg(x_10);
x_12 = l___private_Lean_Language_Lean_0__Lean_Language_Lean_waitForFinalCmdState_x3f_goCmd(x_11);
return x_12;
}
}
}
}
lean_object* initialize_Lean_Language_Util(uint8_t builtin);
lean_object* initialize_Lean_Language_Lean_Types(uint8_t builtin);
lean_object* initialize_Lean_Elab_Import(uint8_t builtin);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_Language_Lean(uint8_t builtin) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Lean_Language_Util(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Language_Lean_Types(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Elab_Import(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_Language_Lean_instMonadLiftLeanProcessingMLeanProcessingTIO = _init_l_Lean_Language_Lean_instMonadLiftLeanProcessingMLeanProcessingTIO();
lean_mark_persistent(l_Lean_Language_Lean_instMonadLiftLeanProcessingMLeanProcessingTIO);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__11 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__11();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__11);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__2 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__2();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__2);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__4 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__4();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__4);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__0 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__0();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__0);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__1 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__1();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__1);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__3 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__3();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__3);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__5 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__5();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__5);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__6 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__6();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__6);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__7 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__7();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__7);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__8 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__8();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__8);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__9 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__9();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__9);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__10 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__10();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__10);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__12 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__12();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__12);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__13 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__13();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__13);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__14 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__14();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__14);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__15 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__15();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__15);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__16 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__16();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__16);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__17 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__17();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___redArg___closed__17);
l_Lean_Language_Lean_setOption___closed__0 = _init_l_Lean_Language_Lean_setOption___closed__0();
lean_mark_persistent(l_Lean_Language_Lean_setOption___closed__0);
l_Lean_Language_Lean_setOption___closed__1 = _init_l_Lean_Language_Lean_setOption___closed__1();
lean_mark_persistent(l_Lean_Language_Lean_setOption___closed__1);
l_Lean_Language_Lean_setOption___closed__2 = _init_l_Lean_Language_Lean_setOption___closed__2();
lean_mark_persistent(l_Lean_Language_Lean_setOption___closed__2);
l_Lean_Language_Lean_setOption___closed__3 = _init_l_Lean_Language_Lean_setOption___closed__3();
lean_mark_persistent(l_Lean_Language_Lean_setOption___closed__3);
l_Lean_Language_Lean_setOption___closed__4 = _init_l_Lean_Language_Lean_setOption___closed__4();
lean_mark_persistent(l_Lean_Language_Lean_setOption___closed__4);
l_Lean_Language_Lean_setOption___closed__5 = _init_l_Lean_Language_Lean_setOption___closed__5();
lean_mark_persistent(l_Lean_Language_Lean_setOption___closed__5);
l_Lean_Language_Lean_setOption___closed__6 = _init_l_Lean_Language_Lean_setOption___closed__6();
lean_mark_persistent(l_Lean_Language_Lean_setOption___closed__6);
l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__0 = _init_l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__0();
lean_mark_persistent(l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__0);
l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__1 = _init_l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__1();
lean_mark_persistent(l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__1);
l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__2 = _init_l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__2();
lean_mark_persistent(l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__2);
l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__3 = _init_l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__3();
lean_mark_persistent(l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__3);
l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__4 = _init_l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__4();
lean_mark_persistent(l_List_forIn_x27_loop___at___00Lean_Language_Lean_reparseOptions_spec__0___redArg___closed__4);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f___closed__0 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f___closed__0();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f___closed__0);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f___closed__1 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f___closed__1();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f___closed__1);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f___closed__2 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f___closed__2();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f___closed__2);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f___closed__3 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f___closed__3();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f___closed__3);
l_Lean_Language_Lean_initFn___closed__0_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_ = _init_l_Lean_Language_Lean_initFn___closed__0_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_();
lean_mark_persistent(l_Lean_Language_Lean_initFn___closed__0_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_);
l_Lean_Language_Lean_initFn___closed__1_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_ = _init_l_Lean_Language_Lean_initFn___closed__1_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_();
lean_mark_persistent(l_Lean_Language_Lean_initFn___closed__1_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_);
l_Lean_Language_Lean_initFn___closed__2_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_ = _init_l_Lean_Language_Lean_initFn___closed__2_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_();
lean_mark_persistent(l_Lean_Language_Lean_initFn___closed__2_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_);
l_Lean_Language_Lean_initFn___closed__3_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_ = _init_l_Lean_Language_Lean_initFn___closed__3_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_();
lean_mark_persistent(l_Lean_Language_Lean_initFn___closed__3_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_);
l_Lean_Language_Lean_initFn___closed__4_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_ = _init_l_Lean_Language_Lean_initFn___closed__4_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_();
lean_mark_persistent(l_Lean_Language_Lean_initFn___closed__4_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_);
l_Lean_Language_Lean_initFn___closed__5_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_ = _init_l_Lean_Language_Lean_initFn___closed__5_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_();
lean_mark_persistent(l_Lean_Language_Lean_initFn___closed__5_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_);
if (builtin) {res = l_Lean_Language_Lean_initFn_00___x40_Lean_Language_Lean_1425344694____hygCtx___hyg_4_();
if (lean_io_result_is_error(res)) return res;
l_Lean_Language_Lean_experimental_module = lean_io_result_get_value(res);
lean_mark_persistent(l_Lean_Language_Lean_experimental_module);
lean_dec_ref(res);
}l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__0 = _init_l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__0();
lean_mark_persistent(l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__0);
l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__3 = _init_l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__3();
lean_mark_persistent(l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__3);
l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__2 = _init_l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__2();
lean_mark_persistent(l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__2);
l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__1 = _init_l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__1();
lean_mark_persistent(l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__1);
l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__4 = _init_l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__4();
lean_mark_persistent(l_IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9___redArg___closed__4);
l_panic___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__11___closed__0 = _init_l_panic___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__11___closed__0();
lean_mark_persistent(l_panic___at___00IO_FS_withIsolatedStreams___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__9_spec__11___closed__0);
l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg___closed__0 = _init_l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg___closed__0();
lean_mark_persistent(l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg___closed__0);
l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg___closed__1 = _init_l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg___closed__1();
lean_mark_persistent(l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg___closed__1);
l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg___closed__2 = _init_l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg___closed__2();
lean_mark_persistent(l_Lean_Elab_getResetInfoTrees___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__0___redArg___closed__2);
l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__0 = _init_l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__0();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__0);
l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__1 = _init_l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__1();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__1);
l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__2 = _init_l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__2();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__2);
l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__3 = _init_l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__3();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__3);
l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__4 = _init_l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__4();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__4);
l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__5 = _init_l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__5();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__5);
l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__6 = _init_l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__6();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__6);
l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__7 = _init_l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__7();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2_spec__2___redArg___closed__7);
l_Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2___lam__0___closed__0 = _init_l_Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2___lam__0___closed__0();
lean_mark_persistent(l_Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2___lam__0___closed__0);
l_Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2___closed__0 = _init_l_Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2___closed__0();
lean_mark_persistent(l_Lean_logAt___at___00Lean_logErrorAt___at___00Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2_spec__2_spec__2___closed__0);
l_Lean_Language_DynamicSnapshot_ofTyped___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__14___lam__0___closed__0 = _init_l_Lean_Language_DynamicSnapshot_ofTyped___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__14___lam__0___closed__0();
lean_mark_persistent(l_Lean_Language_DynamicSnapshot_ofTyped___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__14___lam__0___closed__0);
l_Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2___closed__0 = _init_l_Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2___closed__0();
lean_mark_persistent(l_Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2___closed__0);
l_Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2___closed__1 = _init_l_Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2___closed__1();
lean_mark_persistent(l_Lean_Elab_logException___at___00Lean_Elab_withLogging___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab_spec__2_spec__2___closed__1);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__0 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__0();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__0);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__1 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__1();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__1);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__2 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__2();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__2);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__3 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__3();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__3);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__4 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__4();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__4);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__5 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__5();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__5);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__6 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__6();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__6);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__7 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__7();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__7);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__8 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__8();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__8);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__9 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__9();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_doElab___closed__9);
l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__8___redArg___closed__0 = _init_l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__8___redArg___closed__0();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd_spec__8___redArg___closed__0);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__5 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__5();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__5);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__6 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__6();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__6);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__0 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__0();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__0);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__1 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__1();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__1);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__2 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__2();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__2);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__3 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__3();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__3);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__0 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__0();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__0);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__0 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__0();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__0);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__1 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__1();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__1);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__1 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__1();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__1);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__2 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__2();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__2);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__0 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__0();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__0);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__1 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__1();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__1);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__2 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__2();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__2);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__3 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__3();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__3);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__4 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__4();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__4);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__5 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__5();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__5);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__6 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__6();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__6);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__7 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__7();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__7);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__8 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__8();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__8);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__9 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__9();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__5___closed__9);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__2 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__2();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__2);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__3 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__3();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__3);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__4 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__4();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__4);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__5 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__5();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__5);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__6 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__6();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__7___closed__6);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__3 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__3();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__3);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__4 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__4();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__8___closed__4);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__11___closed__0 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__11___closed__0();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___lam__11___closed__0);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__4 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__4();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__4);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__5 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__5();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseCmd___closed__5);
l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0___closed__0 = _init_l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0___closed__0();
lean_mark_persistent(l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0___closed__0);
l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0___closed__1 = _init_l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0___closed__1();
lean_mark_persistent(l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0___closed__1);
l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0___closed__2 = _init_l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0___closed__2();
lean_mark_persistent(l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0___closed__2);
l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0___closed__3 = _init_l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0___closed__3();
lean_mark_persistent(l_List_mapTR_loop___at___00__private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader_spec__0___closed__3);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__0 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__0();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__0);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__1 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__1();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__1);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__2 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__2();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__2);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__3 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__3();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__3);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__4 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__4();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__4);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__5 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__5();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__5);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__6 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__6();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__6);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__7 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__7();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__7);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__8 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__8();
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__9 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__9();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__9);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__10 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__10();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__10);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__11 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__11();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__11);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__12 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__12();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__12);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__13 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__13();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__13);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__14 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__14();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__14);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__15 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__15();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__15);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__16 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__16();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__16);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__17 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__17();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__17);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__18 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__18();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__18);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__19 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__19();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__19);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__20 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__20();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__20);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__21 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__21();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__21);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__22 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__22();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__22);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__23 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__23();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__23);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__24 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__24();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__24);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__25 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__25();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__25);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__26 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__26();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__26);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__27 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__27();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__27);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__28 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__28();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__28);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__29 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__29();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__29);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__30 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__30();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__30);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__31 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__31();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__31);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__32 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__32();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__32);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__33 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__33();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__33);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__34 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__34();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___lam__1___closed__34);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___closed__0 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___closed__0();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___closed__0);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___closed__1 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___closed__1();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_processHeader___closed__1);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__0 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__0();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__0);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__1 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__1();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__1);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__2 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__2();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__2);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__3 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__3();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__3);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__4 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__4();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__0___closed__4);
l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__2___closed__0 = _init_l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__2___closed__0();
lean_mark_persistent(l___private_Lean_Language_Lean_0__Lean_Language_Lean_process_parseHeader___lam__2___closed__0);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
